Install
$ [sudo] pip install django-templates
Functions
function | description |
---|---|
django_templates.find(path) |
return list with templates/ folders |
Examples
settings.py
before
>>> TEMPLATES = [
{
'DIRS':
[
BASE_DIR + '/templates/',
BASE_DIR + '/app1/templates/',
BASE_DIR + '/app2/templates/'
]
}
settings.py
after
>>> import django_templates
>>> TEMPLATES = [
{
'DIRS': django_templates.find(BASE_DIR)
}
]
readme-md - README.md generator