From 5fc337b39d67e8ab6ba5f45afac6f44ce54d77f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 12 Aug 2020 08:08:01 +0800 Subject: [PATCH] Moved the logout URL from the site URL patterns to the URL patterns of Mia core application, reduced the dependency from the site settings to the Mia core application. --- mia_core/urls.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mia_core/urls.py b/mia_core/urls.py index 7a1a603..71ffcf6 100644 --- a/mia_core/urls.py +++ b/mia_core/urls.py @@ -29,6 +29,7 @@ register_converter(converters.UserConverter, "user") app_name = "mia_core" urlpatterns = [ + path("logout", views.logout, name="logout"), path("users", views.UserListView.as_view(), name="users"), path("users/create", views.user_form, name="users.create"), path("users/store", views.user_store, name="users.store"),