Skip to content

Commit e1e82a0

Browse files
author
Guillim
committed
We finally make URLs available to the whole application
1 parent 6551e81 commit e1e82a0

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

app/app/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
TEMPLATES = [
8585
{
8686
'BACKEND': 'django.template.backends.django.DjangoTemplates',
87-
'DIRS': [path.join(BASE_DIR, 'server/templates')],
87+
'DIRS': [path.join(BASE_DIR, 'server/templates'),path.join(BASE_DIR, 'authentification/templates')],
8888
'APP_DIRS': True,
8989
'OPTIONS': {
9090
'context_processors': [

app/app/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222

2323
urlpatterns = [
24+
path('', include('authentification.urls')),
2425
path('', include('server.urls')),
2526
path('admin/', admin.site.urls),
2627
path('social/', include('social_django.urls')),

app/authentification/urls.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from django.urls import path
2+
from django.contrib.auth.views import PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView
3+
4+
from .views import SignupView
5+
from .utils import activate
6+
7+
8+
urlpatterns = [
9+
path('password_reset/done/', PasswordResetDoneView.as_view(),name='password_reset_done'),
10+
path('reset/done/', PasswordResetCompleteView.as_view(),name='password_reset_complete'),
11+
path('reset/<uidb64>/<token>/', PasswordResetConfirmView.as_view(),name='password_reset_confirm'),
12+
path('signup/', SignupView.as_view(), name='signup'),
13+
path('activate/<str:uidb64>/<str:token>', activate, name='activate'),
14+
]

0 commit comments

Comments
 (0)