Paths in Django settings relative to settings.py
This is an example how to use relative paths in settings file, but still keep settings readable.
- settings
- path
- relative
This is an example how to use relative paths in settings file, but still keep settings readable.
This middleware fixes generation of URLs for admin interface and {% url %} resolving when you're mounting application to the subtree of site, e.g. if you use SCGIMount /prefix/ and serve application using SCGI, or if you use WSGI and want to bind Django application to some prefix.
2 snippets posted so far.