Django版本2.0以上不支持
from django.urls import RegexURLResolver, RegexURLPattern
应改为
from django.urls.resolvers import URLResolver, URLPattern
然后把 item._regex和 item.regex改成item.pattern.regex.pattern
完美解决
Django版本2.0以上不支持
from django.urls import RegexURLResolver, RegexURLPattern
应改为
from django.urls.resolvers import URLResolver, URLPattern
然后把 item._regex和 item.regex改成item.pattern.regex.pattern
完美解决