hpcugent / vsc-base

Basic Python libraries used by UGent's HPC group
Other
14 stars 51 forks source link

Remove creating double slash in url #327

Open matesaki opened 2 years ago

matesaki commented 2 years ago

Merging domain url and path url creates double slash which causes on localhost error 404 (Page not found).

Signed-off-by: Martin Sakin marty@inuits.eu

matesaki commented 2 years ago

When I running scripts form vsc-ugent.git, then in get_connection() function I got: self.url: http://localhost:8000/api/ sep: url: /monitoring/time/1651612143/ ... and merging creates: http://localhost:8000/api//monitoring/time/1651612143/ This leads to error 404 (Page not found). I'm running vsc-accountpage localy with DEBUG mode, so, maybe it is more sensitive.