Hi, This bug sounds familiar, from back in the days when Django's admin started migrating to named URLs in the admin.
The regex you've got for the admin page is the source of the problem. What you've got is a weird hybrid between the old style: (r'^admin/(.*)', admin.site.root), and the new style: (r'^admin/', include(admin.site.urls)), If you drop the (.*) portion from your admin pattern, that should fix the problem. Yours, Russ Magee %-) On Friday, 13 April 2012 at 3:29 AM, jws wrote: > My sad story- I have inherited an app developed by a third party that > I am deploying and I'm having strange issues with it. The last known > working configuration was lost when a virtual host was inadvertently > destroyed. > > The specific problem is that the admin app is not creating urls to > pages correctly. I can login to the app as the superuser and connect > to the base admin url. Let's call it > > http://www.mysite.com/admin > > When I click the link to add a group, the url I get is > > http://www.mysite.com/admin/auth/user/add/ > > which appears to be correct, but the page that is displayed is the > same base admin page. If I click the link again, I get the url > > http://www.mysite.com/admin/auth/user/add/auth/user/add/ > > Which, while entertaining, is clearly wrong. Again, I get the base > admin page. This occurs for all the objects in the model. I tried > running the development server rather than apache httpd(same result), > so the issue is part of the Django app itself. > > I did notice that in the urls.py, the regex for the admin app looks > like this - > (r'^admin/(.*)', include(admin.site.urls)) , which is not the > default. > > This is Django 1.2.3 and user profiles are in the mix somehow, though > I'm not familiar with that feature. People are supposed to be routed > to different pages based on group membership. I don't think that > applies to the admin, but thought it should be mentioned. > > I'm out of good ideas, any suggestions would be appreciated. > > -- > 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] > (mailto:[email protected]). > To unsubscribe from this group, send email to > [email protected] > (mailto:[email protected]). > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- 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.

