Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django optional path parameter

urlpatterns = patterns('',
    url(r'^project_config/$', views.foo),
    url(r'^project_config/(?P<product>w+)/$', views.foo),
    url(r'^project_config/(?P<product>w+)/(?P<project_id>w+)/$', views.foo),
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #optional #path #parameter
ADD COMMENT
Topic
Name
7+9 =