Resolve "Settings page"
This commit is contained in:
parent
f4adb9635a
commit
bb47e2af8d
16 changed files with 179 additions and 10 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from django.contrib.auth.decorators import login_required
|
||||
from django.urls import path
|
||||
|
||||
from newsreader.accounts.views import (
|
||||
|
|
@ -6,6 +7,7 @@ from newsreader.accounts.views import (
|
|||
ActivationView,
|
||||
LoginView,
|
||||
LogoutView,
|
||||
PasswordChangeView,
|
||||
PasswordResetCompleteView,
|
||||
PasswordResetConfirmView,
|
||||
PasswordResetDoneView,
|
||||
|
|
@ -13,6 +15,7 @@ from newsreader.accounts.views import (
|
|||
RegistrationClosedView,
|
||||
RegistrationCompleteView,
|
||||
RegistrationView,
|
||||
SettingsView,
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -52,5 +55,10 @@ urlpatterns = [
|
|||
PasswordResetCompleteView.as_view(),
|
||||
name="password-reset-complete",
|
||||
),
|
||||
# TODO: create password change views
|
||||
path(
|
||||
"password-change/",
|
||||
login_required(PasswordChangeView.as_view()),
|
||||
name="password-change",
|
||||
),
|
||||
path("settings/", login_required(SettingsView.as_view()), name="settings"),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue