📜  django 可选路径参数 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:30.506000             🧑  作者: Mango

代码示例1
urlpatterns = patterns('',
    url(r'^project_config/$', views.foo),
    url(r'^project_config/(?P\w+)/$', views.foo),
    url(r'^project_config/(?P\w+)/(?P\w+)/$', views.foo),
)