On Fri, Mar 27, 2009 at 8:10 AM, Stephan John <em...@stephanjohn.de> wrote:

>
> Hi all,
>
> I have some trouble with my Admin-URLs. When I set DEBUG=False (in the
> settings.py) I become this error (I've changed some lines in the file
> ../django/core/handlers/base.py to see the error in no-debug-mode):
>
> Using the URLconf defined in project.urls, Django tried these URL patterns,
> in
> this order:
> 1.^admin/ ^$
> 2.^admin/ ^logout/$
> 3.^admin/ ^password_change/$
> 4.^admin/ ^password_change/done/$
> 5.^admin/ ^jsi18n/$
> 6.^admin/ ^r/(?P<content_type_id>\d+)/(?P<object_id>.+)/$
> 7.^admin/ ^(?P<app_label>\w+)/$
> 8.^admin/ ^auth/group/
> 9.^admin/ ^auth/user/
> 10.^admin/ ^sites/site/
> The current URL, admin/hauptseite/beitrag/, didn't match any of these.
>
> But when I set DEBUG=True, everything is OK and I have no errors.
> (I use Django version 1.1 beta)
>

What you seem to be missing are the patterns that are added for each
registered model.  Are your calls to admin.site.register (or your call to
admin.autodiscover()) dependent on the DEBUG setting?

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