generated from ocadotechnology/codeforlife-template-backend
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
203 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
from django.contrib.auth.views import LogoutView | ||
from django.urls import path, re_path | ||
|
||
from ..views.session import LoginView | ||
from ..views.session import ClearExpiredView, LoginView | ||
|
||
urlpatterns = [ | ||
re_path( | ||
r"^(?P<user_type>teacher|dependent_student|independent_student)/login/$", | ||
r"^(?P<user_type>teacher|dependent-student|independent-student)/login/$", | ||
LoginView.as_view(), | ||
name="login", | ||
), | ||
path("logout/", LogoutView.as_view(), name="logout"), | ||
path( | ||
"logout/", | ||
LogoutView.as_view(), | ||
name="logout", | ||
), | ||
path( | ||
"clear-expired/", | ||
ClearExpiredView.as_view(), | ||
name="clear-expired-sessions", | ||
), | ||
] |
Empty file.
Empty file.
Oops, something went wrong.