#17432: url(r'^admin/', include('admin.site.urls')),
-------------------------------+--------------------------------------
     Reporter:  info@…         |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  contrib.admin  |                  Version:  1.3
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:  admin          |             Triage Stage:  Unreviewed
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by kmtracey):

 I cannot recreate what you are saying, trying exactly what you specify and
 running on Ubuntu 11.10. First, the wget command you show retrieves the
 Django 1.3.1 tarball but gives it the name 'index.html', so it's got to be
 renamed before the tar command. Second, you either need to have activated
 virtualenv in which to install or preface the python setup.py command with
 sudo. Finally, after running the startproject command, the urls.py file
 generated has no quotes around the admin.site.urls.

 If it did I would be very puzzled because in no version of the file used
 to build a project's urls.py file in Django's history has the
 admin.site.urls spec had quotes around it. The changeset that switched
 from the old admin.site.root specification to admin.site.urls is here:
 
https://code.djangoproject.com/changeset/9739/django/trunk/django/conf/project_template/urls.py
 -- there were no quotes included in that change. To find a version of that
 line that had quotes around the specified thing you have to go all the way
 back to r7966
 
(https://code.djangoproject.com/browser/django/trunk/django/conf/project_template/urls.py?rev=7966),
 the next change
 
(https://code.djangoproject.com/changeset/7967/django/trunk/django/conf/project_template/urls.py)
 introduced admin.site.root and removed the quotes (and the include, and
 the (.*) at the end of the pattern).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17432#comment:3>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to