I'm getting this error
error at /
unknown sp开发者_如何学Goecifier: ?P&
and I suppose it's coming from this line
(r'^(?P<template>\w+)/$', static_page),
I copied this from a tutorial, how do I fix this error ?
You want to use
r'^(?P<template>\w+)/$'
for your regex. You seem to have copied the regex with HTML entities still encoded; the regex engine expects verbatim <  and >.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论