I'm stuck on a "reverse" problem.  The 'case' view is supposed to
record posted info, then reload the same page.  But it's dropping the
first part of the URL on the redirect and I've not been able to figure
out why.

It should be going to .com/helpdesk/support/case/1/  But it's going
to .com/support/case/1/

I'm sure it's something simple as I've had the problem in the past and
fumbled my way through it.  But I can't find it this time.  Hopefully
the below pasted lines show all the necessary detail.

Anyone see my error?

helpdesk.urls:
urlpatterns = patterns('',
    (r'^support/', include('helpdesk.support.urls')),
)

helpdesk.support.urls:
urlpatterns = patterns('helpdesk.support.views',
    (r'^case/(?P<case>\d+)/$', 'case',{},'case_url' ),
)

helpdesk.support.views:
def case(request, case):
    return HttpResponseRedirect(reverse('case_url', args=(case.id,)))
# Redirect back here after POST

-Shane

--

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