Commit 566c0eb9 authored by svilayphiou's avatar svilayphiou

added password_changed_done template

parent 524a19b3
{% extends "base.html" %}
{% load i18n %}
{% block title %}
<h1>{% trans "Logout" %}</h1>
{% endblock %}
{% block content %}
<p>You're logged out.</p>
<p><a href="/">Go back to homepage.</a>
{% endblock %}
......@@ -28,6 +28,6 @@
<input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" />
</form>
{% else %}
<p>You're logged in―welcome!</p>
<p>You're logged in,―welcome!</p>
{% endif %}
{% endblock %}
{% extends "base.html" %}
{% load i18n %}
{% block title %}
<h1>{% trans "Your password has been successfully changed" %}</h1>
{% endblock %}
{% block content %}
<a href="/">Go back to homepage</a>
{% endblock %}
......@@ -36,16 +36,22 @@ 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/', include('django.contrib.auth.urls')),
#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.PasswordChangeView.as_view(), name="password_change"),
path('create/', views.padCreate, name='pad-create'),
re_path(r'(?P<mode>[r|s|p])/(?P<slug>[^/]+)$', views.pad_read, name='pad-read'),
#re_path(r'r/(?P<slug>[^/]+)$', views.pad, name='pad-read'),
#re_path(r's/(?P<slug>[^/]+)$', views.pad, name='pad-slide'),
#re_path(r'p/(?P<slug>[^/]+)$', views.pad, name='pad-print'),
re_path(r'w/(?P<slug>[^/]+)$', views.pad, name='pad-write'),
] + 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