Last active
December 17, 2015 05:39
-
-
Save andrewebdev/5559892 to your computer and use it in GitHub Desktop.
django: context_processors
This file contains 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
import django.conf.global_settings as DEFAULT_SETTINGS | |
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + ( | |
'django.core.context_processors.request', | |
'website.context_processors.site', | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this a lot, so adding it as a gist so I can just pull it directly from sublime text when needed.