Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#27701 closed Cleanup/optimization (fixed)

Document that runserver bypasses middleware for static files

Reported by: Kevin Christopher Henry Owned by: Joe Krzystan
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It seems that when runserver (with django.contrib.staticfiles) serves static files the request completely bypasses middleware. This caught me off guard, and as far as I can tell isn't documented. It probably should be.

Change History (6)

comment:1 by Tim Graham, 7 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Joe Krzystan, 7 years ago

Owner: changed from nobody to Joe Krzystan
Status: newassigned

comment:3 by Joe Krzystan, 7 years ago

Has patch: set

Added note snippet reflecting this behavior to staticfiles runserver doc section.

https://github.com/django/django/pull/8942

comment:4 by Tim Martin, 7 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In 20a76169:

Fixed #27701 -- Doc'd staticfiles runserver bypasses middleware when serving static files.

comment:6 by Tim Graham <timograham@…>, 7 years ago

In 046b8c8:

[1.11.x] Fixed #27701 -- Doc'd staticfiles runserver bypasses middleware when serving static files.

Backport of 20a761697fd28c08ab82dec777b4056a5bfaf6a2 from master

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