Hi everyone, I'm having a problem with an url pattern. When I try to do a custom view using the newforms admin, such as:
(r'^admin/surveys/survey/answers/(?P<slug>[-\w]+)/$', 'app.surveys.views.answers_list'), If I remove: (r'^admin/(.*)', admin.site.root), #the default routing for newforms- admin. It works, otherwise it returns an error saying: survey object with primary key u'answers/whatever-the-slug-is' does not exist. Which would lead me to believe that it's not routing to the proper action. Is anyone else experiencing this? What can I do to solve this issue? My base urls.py is: urlpatterns = patterns('', #admin overrides for custom views. (r'^admin/surveys/survey/answers/(?P<slug>[-\w]+)/$', 'app.surveys.views.answers_list'), (r'^$', include('app.pages.urls')), #(r'^surveys/', include('app.surveys.urls')), # Uncomment this for admin docs: #(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment this for admin: ('^admin/(.*)', admin.site.root), ) TIA, Brandon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---