I need to make regex to make a button witch put me on other website
this is my re_path:
re_path (r'^detaletournament(?P<turnament_id>[0-9]+)/$',detaletournament)
Using the URLconf defined in projekt.urls, Django tried these URL patterns, in this order:
admin/
tir
login
register
usertournaments
turnament
addturnament
takepart
deletetournament
quittournament
mytournaments
webturnament
profile
^detaletournament(?P<turnament_id>[0-9]+)/$
The current path, detaletournament, didn't match any of these.
r'^detaletournament/(?P<turnament_id>[0-9]+)/$'
(note the added / )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.