#12963 closed (invalid)
template context processors docs are wrong
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.2-beta |
Severity: | Keywords: | admin context processor documentation | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
the docs at http://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors have the wrong defaults... copy and pasting:
("django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.contrib.messages.context_processors.messages")
that creates errors trying to use this to add our own... it makes the admin app die with:
ImproperlyConfigured at /events/shows
Put 'django.core.context_processors.auth' in your TEMPLATE_CONTEXT_PROCESSORS setting in order to use the admin application.
obviously changing the first item in the tuple fixes the problem. needs to be fixed.
bonus question, is there a way to just add to the defaults so this problem doesn't persist with future changes?
actually, the docs are right. a few changesets ago, the auth context_processors are moved to contrib.auth. (as is mentioned in the link you provided). leaving this open, in case i missed something...