I get this error, you can see a paste here: http://dpaste.com/83932/ The admin site doesn't work on production at all, on the testserver it works after a refresh.
On Oct 11, 4:40 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 4:45 PM, Michael Graz <[EMAIL PROTECTED]>wrote: > > > > > Greetings, > > > The contrib.admin module depends on the contrib.admindocs module due to "{% > > url django-admindocs-docroot as docsroot %}" being part of the admin > > base.html template. However there is a problem with the following usage: > > > urlpatterns = patterns('', > > (r'^admin/doc/', include('django.contrib.admindocs.urls')), > > (r'^admin/(.*)', admin.site.root), > > ) > > > The include('django.contrib.admindocs.urls') is done only on demand (a lazy > > evaluation). So if the "/admin" url is visited virst there is some kind of > > weird TemplateSyntaxError since admin template doesn't know about the named > > url from admindocs. But once the "/admin/doc" url is visited then the > > django.contrib.admindocs.urls are loaded and the url named > > django-admindocs-docroot springs into existence. Then from that point on > > the "/admin" will render successfully. > > > Is there a way to have the "/admin" url work right from the start without > > first having to visit the "/admin/doc" url? This problem occurs after every > > server restart. If the server is rarely restarted then the problem is > > lessened. However during development it happens every time the manage.py > > reloads due to a file being changed. > > I do not see this behavior. Specifics of the "weird TemplateSyntaxError" > might shed some light. I have the urls you specify in my config (and > 'django.contrib.admindocs' in INSTALLED_APPS) and can surely visit /admin > without problem before ever visiting the doc url. > > 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-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---