Skip to content

Instantly share code, notes, and snippets.

@andrewebdev
Last active December 17, 2015 05:39
Show Gist options
  • Save andrewebdev/5559892 to your computer and use it in GitHub Desktop.
Save andrewebdev/5559892 to your computer and use it in GitHub Desktop.
django: context_processors
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',
)
@andrewebdev
Copy link
Author

I use this a lot, so adding it as a gist so I can just pull it directly from sublime text when needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment