Django Optional URL Parameter


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. (r'^render/((?P<model>w+)/(?P<id>d+)/)?$', 'render')

URL: http://lethain.com/entry/2008/feb/04/using-optional-parameters-in-django-urls/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.