> > Here, I collect the parameters from the form and try to turn them into > a pretty URL that redirects to the filter view to do something with > the data. It's the URL writing I'm having problems with. I want to > write things like:
Why not do it in the process view immediatly? > urlpatterns += patterns('proj.app.views', > (r'^(?P<flavour>\w+)/((?P<description>\w+)/)?$', 'filter'), > ) > > The question mark is wrapped around an extra '/' to complete the URL, > but it doesn't work. Nor does > > urlpatterns += patterns('proj.app.views', > (r'^(?P<flavour>\w+)/$', 'filter'), > (r'^(?P<flavour>\w+)/(?P<description>\w+/$', 'filter'), > ) > you are missing a closing ) on the last line: (r'^(?P<flavour>\w+)/(?P<description>\w+*)*/$', 'filter'), Tino --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---