[英]How can I make Django use the correct current time for my system locale?
[英]how can i make a correct regex in django?
我需要制作正则表达式来制作一个按钮女巫把我放在其他网站上
这是我的 re_path:
re_path (r'^detaletournament(?P<turnament_id>[0-9]+)/$',detaletournament)
使用 projekt.urls 中定义的 URLconf,Django 按以下顺序尝试了这些 URL 模式:
admin/
tir
login
register
usertournaments
turnament
addturnament
takepart
deletetournament
quittournament
mytournaments
webturnament
profile
^detaletournament(?P<turnament_id>[0-9]+)/$
当前的路径 detaletournament 与这些都不匹配。
r'^detaletournament/(?P<turnament_id>[0-9]+)/$'
(注意添加的 / )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.