Opened 7 years ago
Closed 7 years ago
#29765 closed Cleanup/optimization (wontfix)
Mention MIDDLEWARE/INSTALLED_APPS order is important in settings.py
| Reported by: | Windson yang | Owned by: | Windson yang |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
It will be better to add https://docs.djangoproject.com/en/2.1/topics/http/middleware/#middleware-order-and-layering before
MIDDLEWARE = [
...
]
and https://docs.djangoproject.com/en/2.1/ref/settings/#installed-apps before
INSTALLED_APPS = [
...
]
to tell user the order is important.
Change History (2)
comment:1 by , 7 years ago
| Has patch: | set |
|---|
comment:2 by , 7 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | assigned → closed |
There was a rather lengthy effort in 2013 to simplify the project template's settings.py that resulted in 3f1c7b70537330435e2ec2fca9550f7b7fa4372e. In light of that, I don't think there will be much consensus to begin adding more documentation back to settings.py.
https://github.com/django/django/pull/10400