-
-
Notifications
You must be signed in to change notification settings - Fork 992
/
Copy pathurls.py
30 lines (28 loc) · 814 Bytes
/
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
from django.urls import include, path
from registration.backends.default.views import RegistrationView
from registration.forms import RegistrationFormUniqueEmail
from . import views as account_views
urlpatterns = [
path(
"register/",
RegistrationView.as_view(form_class=RegistrationFormUniqueEmail),
name="registration_register",
),
path(
"edit/",
account_views.edit_profile,
name="edit_profile",
),
path(
"delete/",
account_views.delete_profile,
name="delete_profile",
),
path(
"delete/success/",
account_views.delete_profile_success,
name="delete_profile_success",
),
path("", include("django.contrib.auth.urls")),
path("", include("registration.backends.default.urls")),
]