-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
532 form for bugs #600
base: master
Are you sure you want to change the base?
532 form for bugs #600
Conversation
app/server.py
Outdated
link_for_bugs_report = app.config['LINK_FOR_BUGS_REPORT'] | ||
return render_template("intro_page.html", link_for_bugs_report=link_for_bugs_report) | ||
support_mail = app.config['SUPPORT_MAIL'] | ||
return render_template("intro_page.html", link_for_bugs_report=link_for_bugs_report, support_mail=support_mail) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Шаблонизатор имеет доступ к конфигу приложения, поэтому эти данные можно не передавать, а получать прямо в "intro_page.html"
https://flask.palletsprojects.com/en/2.3.x/templating/#standard-context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправлено.
Задача:
#532