Opened 16 years ago

Closed 16 years ago

#8009 closed (worksforme)

startproject creates urls.py with old admin links

Reported by: maxclark Owned by: nobody
Component: Core (Management commands) 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

7967 merged newforms-admin into trunk, but the startproject command from django-admin creates the urls.py with the old urlpattern which does not work.

Change History (1)

comment:1 by Karen Tracey, 16 years ago

Resolution: worksforme
Status: newclosed

Are you sure you aren't picking up an old django-admin.py command in your path? I just tried this and the generated urls.py file was:

from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^Playground2/', include('Playground2.foo.urls')),

    # Uncomment the next line to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line for to enable the admin:
    # (r'^admin/(.*)', admin.site.root),
)

which is definitely newforms-admin style, not the old one.

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