Change order of defender urls in documentation and example app

This commit is contained in:
Dashgin 2022-05-20 14:56:26 +04:00 committed by Ken Cochrane
parent 0a5011d450
commit 7bb1359514
2 changed files with 2 additions and 2 deletions

View file

@ -169,8 +169,8 @@ following to your ``urls.py``
.. code-block:: python .. code-block:: python
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), # normal admin
path('admin/defender/', include('defender.urls')), # defender admin path('admin/defender/', include('defender.urls')), # defender admin
path('admin/', admin.site.urls), # normal admin
# your own patterns follow... # your own patterns follow...
] ]

View file

@ -7,8 +7,8 @@ from django.conf.urls.static import static
admin.autodiscover() admin.autodiscover()
urlpatterns = [ urlpatterns = [
re_path(r"^admin/", admin.site.urls),
re_path(r"^admin/defender/", include("defender.urls")), re_path(r"^admin/defender/", include("defender.urls")),
re_path(r"^admin/", admin.site.urls),
] ]