Code

Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#20862 closed Uncategorized (fixed)

dev Middleware docs sample isn't up to date with dev startproject template

Reported by: Keryn Knight <django@…> Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: yes UI/UX: no

Description

The middleware page includes an example of what startproject would output; at the time of writing, it is:

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
)

This doesn't seem to jive with the MIDDLEWARE_CLASSES in the project template, which includes django.middleware.clickjacking.XFrameOptionsMiddlewareby default for the first time.

Attachments (0)

Change History (2)

comment:1 Changed 11 months ago by Tim Graham <timograham@…>

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

In 26c4bd38acd4c1b5125eaa381420c2ca5603bd39:

Fixed #20862 -- Updated startproject MIDDLEWARE_CLASSES in docs.

Thanks Keryn Knight.

comment:2 Changed 11 months ago by Tim Graham <timograham@…>

In 06f484dcf9984f2a2223f20422e130844c246800:

[1.6.x] Fixed #20862 -- Updated startproject MIDDLEWARE_CLASSES in docs.

Thanks Keryn Knight.

Backport of 26c4bd38ac from master

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.