#24635: New project provides deprecated examples
--------------------------------------------+------------------------------
Reporter: jambonrose | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Management commands) | Version: 1.8
Severity: Normal | Keywords: startproject
| templates
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+------------------------------
As detailed in the [https://docs.djangoproject.com/en/1.8/releases/1.8
/#django-conf-urls-patterns 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.
--
Ticket URL: <https://code.djangoproject.com/ticket/24635>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.a00ca5813844492c534c7d300ca87893%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.