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
- 3rd Party App Directories by thalin 3 years, 10 months ago
- Simple profile middleware by limodou 5 years, 2 months ago
- Dynamic Template Loader by jgeewax 3 years, 10 months ago
- Dynamic Backends by LorenDavie 3 years, 7 months ago
- Mobilize your Django site by stevena0 3 years, 1 month ago
Comments
I used to use the exact same code but then I discovered you can achieve the same by
#