On Fri, Oct 9, 2009 at 9:38 AM, Aaron <aa...@genieknows.com> wrote: > > On Oct 9, 11:22 am, Javier Guerra <jav...@guerrag.com> wrote: >> add a second line to your URL mappigs with the third argument: >> >> (r'^(?P<a>[-\w]+)/(?P<b>[-\w]+)/$', 'model_view'), >> (r'^(?P<a>[-\w]+)/(?P<b>[-\w]+)/(?P<c>[-\w]+)/$', 'model_view') > > That's the problem. 'c' is not supposed to be visible in the URL > itself. A person is only supposed to see /a/b/ when accessing the > model's page.
so, you want to get a parameter from the URL, but not to be in the URL? i'd say get that 'c' parameter from somewhere else. maybe something like this: add the 3-params URL; but in the view validate 'c' and store it somewhere else (probably in the session dict) then redirect to the 'user visible' 2-params URL. the browser (w|sh)ouldn't record the ephemeral 3-parms URL in the history. -- Javier --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---