Hi all,

I have a (class based) view that redirects to reverse('ideal_in').
This works with runserver, but not with wsgi. Does anybody know why
this might be?

Most relevant lines of my urls.py:
    urlpatterns = patterns('',
        url(r'^payment/ideal/$',
IdealView.as_view(),       name='ideal_in'),
        url(r'^payment/ideal/(?P<type>\w+)/$',
IdealProcessor.as_view(),  name='ideal_out'),
        ...

I get a NoReverseMatch exception:

    ...
    File "/var/virtualenvs/lilaland/src/django/django/views/generic/
edit.py" in form_valid
      60.         return HttpResponseRedirect(self.get_success_url())
    File "/var/virtualenvs/lilaland/src/webshop/order/views.py" in
get_success_url
      170.         return reverse('ideal_in')
    File "/var/virtualenvs/lilaland/src/django/django/core/
urlresolvers.py" in reverse
      392.             *args, **kwargs)))
    File "/var/virtualenvs/lilaland/src/django/django/core/
urlresolvers.py" in reverse
      338.                 "arguments '%s' not found." %
(lookup_view_s, args, kwargs))

    Exception Type: NoReverseMatch at /order/
    Exception Value: Reverse for 'ideal_in' with arguments '()' and
keyword arguments '{}' not found.

Cheers, Roald

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