Skip to content

Instantly share code, notes, and snippets.

@freezed
Created April 23, 2019 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freezed/d5b18e8218c23fc64e4e8dc467e4b2a4 to your computer and use it in GitHub Desktop.
Save freezed/d5b18e8218c23fc64e4e8dc467e4b2a4 to your computer and use it in GitHub Desktop.
Django templates settings for using nine
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