generated from ieeeuoft/hackathon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
76 lines (74 loc) · 2.66 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from django.contrib.auth import views as auth_views
from django.urls import path, reverse_lazy
from event.views import IndexView, DashboardView, QRScannerView
from event.forms import (
PasswordChangeForm,
PasswordResetForm,
SetPasswordForm,
AuthenticationForm,
)
app_name = "event"
urlpatterns = [
path("", IndexView.as_view(), name="index"),
path(
"accounts/login/",
auth_views.LoginView.as_view(
template_name="event/login.html", form_class=AuthenticationForm
),
name="login",
),
path("accounts/logout/", auth_views.LogoutView.as_view(), name="logout",),
path("dashboard/", DashboardView.as_view(), name="dashboard"),
path("dashboard/qrscan/", QRScannerView.as_view(), name="qr-scanner"),
path(
"accounts/change_password/",
auth_views.PasswordChangeView.as_view(
template_name="event/change_password.html",
success_url=reverse_lazy("event:change_password_done"),
form_class=PasswordChangeForm,
),
name="change_password",
),
path(
"accounts/change_password_done/",
auth_views.PasswordChangeDoneView.as_view(
template_name="event/change_password_done.html"
),
name="change_password_done",
),
path(
"accounts/reset_password/",
auth_views.PasswordResetView.as_view(
template_name="event/reset_password/reset_password.html",
success_url=reverse_lazy("event:reset_password_done"),
form_class=PasswordResetForm,
subject_template_name="event/reset_password/reset_password_subject.txt",
email_template_name="event/reset_password/reset_password_email.html",
html_email_template_name="event/reset_password/reset_password_email.html",
),
name="reset_password",
),
path(
"accounts/reset_password_done/",
auth_views.PasswordResetDoneView.as_view(
template_name="event/reset_password/reset_password_done.html"
),
name="reset_password_done",
),
path(
"accounts/reset_password_confirm/<uidb64>/<token>/",
auth_views.PasswordResetConfirmView.as_view(
template_name="event/reset_password/reset_password_confirm.html",
success_url=reverse_lazy("event:reset_password_complete"),
form_class=SetPasswordForm,
),
name="reset_password_confirm",
),
path(
"accounts/reset_password_complete/",
auth_views.PasswordResetCompleteView.as_view(
template_name="event/reset_password/reset_password_complete.html"
),
name="reset_password_complete",
),
]