On Sun, Jan 31, 2010 at 2:39 PM, Martin J. Laubach
<mjl+goo...@emsi.priv.at<mjl%2bgoo...@emsi.priv.at>
> wrote:

> > 1.    (r'^admin/', include(admin.site.urls)),
>
>   That looks like it.
>

No, that is the correct way to specify admin urls for 1.1 and up. No quotes
around admin.site.urls.

One way the reported error can happen is when what is in the place of a view
function in a urlpatterns entry is neither a callable nor a string.  Based
on the fact that it is not callable, the url resolution code goes ahead and
assumes it must be a string.  In this case there's apparently a module
listed somewhere instead of a callable.

To answer this question:

Any clues what {% url django-admindocs-docroot as docsroot %}  is
> looking for to throw that error?
>

Any attempt to do reverse url mapping, as is done by the {% url %} tag,
requires that the entire URL configuration be valid.  Thus any errors in the
URL configuration will trigger a {% url %} tag failure.  It is not the
/admin/ page at fault here nor that {% url %} tag.  There's something broken
in the project's URL configuration.

Karen

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