On Tue, Oct 7, 2008 at 10:50 AM, NoviceSortOf <[EMAIL PROTECTED]> wrote:

>
>
> Yes I restarted, but I also noticed in urls.py
>
> 2 distinct suggested admin url patterns...
>
> (r'^admin/', include('django.contrib.admin.urls')),
> # (r'^admin/(.*)', admin.site.root),
>
> Commenting out the second entry seems to correct
> the admin_urls problem.
>
> Why does the documentation suggest
>  (r'^admin/(.*)', admin.site.root)?
>

What version of Django are you running?  These two patterns are from
different Django versions.  The first, with the include of
'django.contrib.admin.urls' was the old one -- that file does not exist in
Django 1.0.  The 2nd pattern, referring to 'admin.site.root', is what should
be used for Django 1.0.

If you are actually running 1.0 the old pattern would have produced a "No
module named urls" error since django/contrib/admin/urls.py no longer
exists.  So I am confused as to how commenting out the 2nd version, which is
the one that is correct for 1.0, would have fixed that problem.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to