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.

This commit is contained in:
依瑪貓 2020-08-12 08:08:01 +08:00
parent 48aa772158
commit 5fc337b39d

View File

@ -29,6 +29,7 @@ register_converter(converters.UserConverter, "user")
app_name = "mia_core" app_name = "mia_core"
urlpatterns = [ urlpatterns = [
path("logout", views.logout, name="logout"),
path("users", views.UserListView.as_view(), name="users"), path("users", views.UserListView.as_view(), name="users"),
path("users/create", views.user_form, name="users.create"), path("users/create", views.user_form, name="users.create"),
path("users/store", views.user_store, name="users.store"), path("users/store", views.user_store, name="users.store"),