Commit 1696eaf0 authored by alexandre's avatar alexandre
Browse files

Merge branch '8-add-reset-password-view' into 'pad-management'

Fix #8 Add a reset password view

See merge request !10
parents a6082dc1 d7bb4930
from django.contrib.auth import views as auth_views
from django.conf.urls import include
from django.urls import path, re_path
from . import views
......@@ -22,12 +23,6 @@ urlpatterns = [
path('css-offset/', views.offsetprint, name='css-offset'),
path('css-slide/', views.css_slide, name='css-slide'),
re_path(r'^(?P<slug>[^/]+)\.xhtml$', views.xhtml, name='xhtml'),
path('accounts/login', auth_views.LoginView.as_view(),
{'template_name': 'login.html'}, name='login'),
path('accounts/logout', auth_views.LogoutView.as_view(),
{'template_name': 'logout.html'}, name='logout'),
path('accounts/password_change', auth_views.PasswordChangeView.as_view(), name="password_change"),
path('accounts/password_change_done', auth_views.PasswordChangeDoneView.as_view(), name="password_change_done"),
path('create/', views.padCreate, name='pad-create'),
path('create/<path:prefix>', views.padCreate, name='pad-create'),
re_path(r'^rename/(?P<pk>\d+)/$', views.padRename, name='pad-rename'),
......
......@@ -35,3 +35,4 @@ MEDIA_ROOT = ''
# Example: "/var/www/example.com/static/"
STATIC_ROOT = '/home/osp/static-ethertoff-collected/'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
......@@ -22,6 +22,7 @@ except AttributeError:
app_name = "ethertoff"
urlpatterns = [
path('accounts/', include('django.contrib.auth.urls')),
path('', include("ethertoff.urls")),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment