1π
β
It appears that you have unicode code points in your template. By looking at the hex you can see the raw bytes:
280a 7265 6765 783d 7222 cb86 283f 503c (.regex=r"..(?P<
The part right after the rβ is a ^ which appears to have been entered in unicode. It shows as .. and the bytes are 0xcb 0x86. So your regex has unicode but probably should only be ascii, so you should change this:
regex=r"Λ(?P<pk>\d+)/$",
into this:
regex=r"^(?P<pk>/d+)/$",
If you change all of those it probably fixes it.
π€clutton
Source:stackexchange.com