Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#9711 closed (worksforme)

startproject urls.py out of date

Reported by: chaynes Owned by: nobody
Component: contrib.admin 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

Django version 1.1 pre-alpha SVN-9532
django-admin.py startproject creates a urls.py with the old line

(r'^admin/', include('django.contrib.admin.urls')),

instead of the newly required:

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/(.*)', admin.site.root),

Change History (2)

comment:1 by Russell Keith-Magee, 16 years ago

Resolution: worksforme
Status: newclosed

No, it doesn't. The project urls.py template hasn't changed since [8859]. Somewhere on your system is an old (pre v1.0) Django install that is overriding the [9532] checkout you think you are using.

comment:2 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

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