On Wed, Apr 28, 2010 at 6:02 PM, sli <signedlong...@gmail.com> wrote:
> I've been trying to fix this issue for about half an hour, now.
> Current code:
>
> from django.contrib import admin
> admin.autodiscover()
> ...
> # Uncomment the next line to enable the admin:
> (r'^admin/(.*)', include('admin.site.root')),
>
> I've also tried the version that is used in a newly created project
> and ended up with the same issue.

You are mixing the syntax used to map the admin
URLs up to and including 1.0:

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

and the syntax used since 1.1:

  (r'^admin/', include(admin.site.urls)),

Read the respective part #2 of the Django tutorials
to compare them.

Where did you get the

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

fragment from?

-- 
Ramiro Morales  |  http://rmorales.net

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to