#14793 closed (fixed)
staticfiles documentation example overwrites urlpatterns
| Reported by: | Gabriel Grant | Owned by: | Gabriel Grant |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The example of manually adding the static file development view to urlpatterns incorrectly overwrites urlpatterns. It should have "urlpatterns += ..." rather than an "urlpatterns = ..."
Currently it is the first example at:
http://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#staticfiles-development-view
Attachments (1)
Change History (4)
comment:1 by , 15 years ago
| Summary: | staticfiles documentation overwrites urlpatterns → staticfiles documentation example overwrites urlpatterns |
|---|
by , 15 years ago
| Attachment: | 14793.diff added |
|---|
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch adding the '+'