From ca2b47623252e2f50e066a7ee7e52eeb4b25007a Mon Sep 17 00:00:00 2001 From: Andrei Date: Fri, 12 Aug 2022 13:53:23 +0500 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=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=87=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++++ requirements.txt | 5 +++-- templates/confirmation_reg.html | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 9173006..415a2f2 100644 --- a/main.py +++ b/main.py @@ -199,6 +199,10 @@ def edit_profile(logins): return render_template('edit_profile.html', title='Редактирование профиля', form=form, ph_f=ph_f, message="Такая почта уже есть") + else: + help_arg = True + help_arg_2 = form.email.data + return redirect('/confirmation') user.name = form.name.data user.surname = form.surname.data user.age = form.age.data diff --git a/requirements.txt b/requirements.txt index ae1800c..69a777d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ SQLAlchemy~=1.4.34 -Werkzeug~=2.1.1 +Werkzeug~=2.0.0 WTForms~=3.0.1 waitress~=2.1.1 -Flask~=2.1.1 \ No newline at end of file +Flask~=2.1.1 +Pillow~=8.4.0 \ No newline at end of file diff --git a/templates/confirmation_reg.html b/templates/confirmation_reg.html index db2dabf..97be857 100644 --- a/templates/confirmation_reg.html +++ b/templates/confirmation_reg.html @@ -3,7 +3,6 @@ {% extends "base.html" %} {% block content %}
-

Подтверждение почты

{{ form.hidden_tag() }}