Skip to content

Instantly share code, notes, and snippets.

@n37r06u3
Created October 4, 2014 11:21
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 n37r06u3/4d6a60442ebb74b42dbb to your computer and use it in GitHub Desktop.
Save n37r06u3/4d6a60442ebb74b42dbb to your computer and use it in GitHub Desktop.
access request object in django template
from django.conf import global_settings
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.request',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment