mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-18 23:05:07 +01:00
Docs updated
This commit is contained in:
@@ -34,12 +34,12 @@ An app called `plugin` provides a single view:
|
||||
|
||||
The app's `urls.py` would look like so:
|
||||
|
||||
from django.conf.urls import url
|
||||
from django.urls import path
|
||||
import plugin.views
|
||||
|
||||
urlpatterns = [
|
||||
re_path(r^'index$', plugins.views.index, name='index'),
|
||||
]
|
||||
path('index/', plugins.views.index, name='index'),
|
||||
]
|
||||
|
||||
Subsequently it would implement the UrlHook in a dedicated `auth_hooks.py` file like so:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user