Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 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?

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by anonymous

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

comment:2 Changed 4 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 4 years ago by Alex

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

You're correct.

comment:4 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.