1 2 3 4 5 | import os
dirname = os.path.dirname(globals()["__file__"])
TEMPLATE_DIRS = (
os.path.join(dirname, 'application_directory/templates'),
)
|
More like this
- manage.py with magic python path by bikeshedder 5 years, 11 months ago
- Mobilize your Django site by stevena0 4 years, 1 month ago
- Jinja2 Django integration by mathwizard 4 years, 8 months ago
- 3rd Party App Directories by thalin 4 years, 10 months ago
- Ensure ugettext is available absolutely everywhere by ElfSternberg 3 years, 10 months ago
Comments
I used to use the exact same code but then I discovered you can achieve the same by
#