Opened 5 years ago

Closed 5 years ago

Last modified 4 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: UI/UX:

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 Changed 5 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by chr

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 Changed 5 years ago by Alex

  • Resolution set to invalid
  • Status changed from new to closed

You're correct.

comment:4 Changed 4 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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