django.conf.urls.url is deprecated

This commit is contained in:
Ariel Rin
2022-02-02 21:56:01 +10:00
parent c7b99044bc
commit fd442a5735
22 changed files with 143 additions and 134 deletions

View File

@@ -38,7 +38,7 @@ The app's `urls.py` would look like so:
import plugin.views
urlpatterns = [
url(r^'index$', plugins.views.index, name='index'),
re_path(r^'index$', plugins.views.index, name='index'),
]
Subsequently it would implement the UrlHook in a dedicated `auth_hooks.py` file like so: