#24635 closed Cleanup/optimization (fixed)
New project provides deprecated examples
Reported by: | jambonrose | Owned by: | jambonrose |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.8 |
Severity: | Normal | Keywords: | startproject templates |
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
As detailed in the Django 1.8 release notes, namespace strings in URL patterns are considered deprecated.
However, when creating a new project in 1.8 with django-admin startproject
, the default template displays:
url(r'^$', '{{ project_name }}.views.home', name='home'),
The default example provided in project_name/urls.py
should follow best practice.
Change History (6)
comment:1 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 10 years ago
I do think this would make sense to backport, though, given that the examples use a deprecated-in-1.8 style; the project template should at least be self-consistent, IMO.
comment:3 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 10 years ago
Has patch: | set |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
There has been some sensitivity to changing the project template late in the release cycle (now it's after the release) since other tutorials rely on it, so maybe we have to limit this fix to 1.9.