/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(r'^render/((?P<model>w+)/(?P<id>d+)/)?$', 'render')
URL: http://lethain.com/entry/2008/feb/04/using-optional-parameters-in-django-urls/