Opened 2 years ago

Closed 2 years ago

Last modified 2 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: 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.

Change History (2)

comment:1 Changed 2 years 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 2 years 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

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