Skip to content

Instantly share code, notes, and snippets.

@matthewphiong
Created August 7, 2011 08:28
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 matthewphiong/1130194 to your computer and use it in GitHub Desktop.
Save matthewphiong/1130194 to your computer and use it in GitHub Desktop.
Point it to your TEMPLATE_CONTEXT_PROCESSORS in your settings.py file
TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.request",
# ...
"yourapp.context_processors.categories"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment