You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect path to be just the part of URL after /sample/, eg. localhost:8000/sample/dir/file.txt would make path be dir/file.txt, however, path becomes the whole URL after the hostname, in this example sample/dir/file.txt
🔧 Configured for development.
=> listening: localhost:8000
=> logging: Normal
🛰 Mounting '/':
=> GET /
=> GET /sample/<path..>
🚀 Rocket has launched from http://localhost:8000...
GET /sample/dir/file.txt:
=> Matched: GET /sample/<path..>
"/home/dawid/a_directory/sample/dir/file.txt", "sample/dir/file.txt"
=> Warning: Response was `None`.
=> Outcome: Failure
=> Warning: Responding with 404 Not Found catcher.
=> Response succeeded.
The text was updated successfully, but these errors were encountered:
I wrote a view like this
I would expect
path
to be just the part of URL after/sample/
, eg.localhost:8000/sample/dir/file.txt
would makepath
bedir/file.txt
, however,path
becomes the whole URL after the hostname, in this examplesample/dir/file.txt
The text was updated successfully, but these errors were encountered: