amol- / depot

Toolkit for storing files and attachments in web applications
MIT License
161 stars 41 forks source link

support subdirectory #76

Closed maz1987in closed 1 year ago

maz1987in commented 1 year ago

Fix the issue of 404 if the application is in a subdirectory

maz1987in commented 1 year ago

@amol- could you please look at this fix?

amol- commented 1 year ago

This PR should also add a test to confirm that it works as expected and prevent regressions. https://github.com/amol-/depot/blob/master/tests/test_wsgi_middleware.py is probably the right place for it

maz1987in commented 1 year ago

@amol- Done adding the test case and tuning the code