Opened 11 years ago

Closed 11 years ago

Last modified 11 years 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: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
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.

Change History (2)

comment:1 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: newclosed

In 26c4bd38acd4c1b5125eaa381420c2ca5603bd39:

Fixed #20862 -- Updated startproject MIDDLEWARE_CLASSES in docs.

Thanks Keryn Knight.

comment:2 by Tim Graham <timograham@…>, 11 years ago

In 06f484dcf9984f2a2223f20422e130844c246800:

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

Thanks Keryn Knight.

Backport of 26c4bd38ac from master

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