2024-03-28 13:33:44 发布
网友
我不知道我能不能把一根绳子插进去网址.py例如:
“待定”
url(r'^create/(?P<userName>[0-9a-zA-Z-]+)/Pending$', views.create, name='create')
在视野中。会的。你知道吗
def create(request, userName, Status):
非常感谢你的帮助。你知道吗
这里有一个regex模式可以帮助您实现它
url(r'^create/(?P<userName>[0-9a-zA-Z-]+)/(?P<Status>Pending|Completed)$', views.create, name='create')
在这里,视图的Status参数将具有可接受的regex值-Pending。Completed是扩展有效可接受值的示例
Status
Pending
Completed
这里有一个regex模式可以帮助您实现它
在这里,视图的
Status
参数将具有可接受的regex值-Pending
。Completed
是扩展有效可接受值的示例相关问题 更多 >
编程相关推荐