From 921532952a42bd35df1b040585d423cdf582ab98 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Tue, 2 Dec 2025 00:03:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= =?UTF-8?q?=D0=B0=20=D0=B2=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB?= =?UTF-8?q?=D1=8F:=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=20=D0=BE=D1=82?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D1=88=D0=B0=D0=B1?= =?UTF-8?q?=D0=BB=D0=BE=D0=BD=20=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20log?= =?UTF-8?q?in.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- myproject/accounts/views.py | 2 +- .../accounts/password_reset_request.html | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 myproject/templates/accounts/password_reset_request.html diff --git a/myproject/accounts/views.py b/myproject/accounts/views.py index 6634653..d7ed3be 100644 --- a/myproject/accounts/views.py +++ b/myproject/accounts/views.py @@ -113,7 +113,7 @@ def password_reset_request(request): else: form = PasswordResetForm() - return render(request, 'login.html', {'form': form}) + return render(request, 'accounts/password_reset_request.html', {'form': form}) def password_reset_confirm(request, token): diff --git a/myproject/templates/accounts/password_reset_request.html b/myproject/templates/accounts/password_reset_request.html new file mode 100644 index 0000000..3713156 --- /dev/null +++ b/myproject/templates/accounts/password_reset_request.html @@ -0,0 +1,47 @@ +{% extends 'base.html' %} + +{% block title %}Восстановление пароля{% endblock %} + +{% block content %} +
+
+
+ +
+

Восстановление пароля

+

Введите ваш email

+
+ + + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} + + +
+ {% csrf_token %} +

Пожалуйста, введите ваш email, и мы отправим вам инструкции по восстановлению пароля.

+ +
+ + +
+ + + + + +
+
+
+
+{% endblock %}