Created
April 23, 2019 12:51
-
-
Save freezed/d5b18e8218c23fc64e4e8dc467e4b2a4 to your computer and use it in GitHub Desktop.
Django templates settings for using nine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEMPLATES = [ | |
{ | |
"BACKEND": "django.template.backends.django.DjangoTemplates", | |
"DIRS": [path.join(PROJ_DIR, "templates")], | |
"APP_DIRS": True, | |
"OPTIONS": { | |
"context_processors": [ | |
"django.template.context_processors.debug", | |
"django.template.context_processors.request", | |
"django.contrib.auth.context_processors.auth", | |
"django.contrib.messages.context_processors.messages", | |
"fobi.context_processors.theme", # Important! | |
"nine.context_processors.versions", | |
] | |
}, | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment