Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#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?

Change History (4)

comment:1 by anonymous, 15 years ago

comment:2 by chr, 15 years ago

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...

comment:3 by Alex Gaynor, 15 years ago

Resolution: invalid
Status: newclosed

You're correct.

comment:4 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top