Code

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#9711 closed (worksforme)

startproject urls.py out of date

Reported by: chaynes Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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),

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

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 Changed 5 years ago by anonymous

  • milestone post-1.0 deleted

Milestone post-1.0 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.