Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

532 form for bugs #600

wants to merge 7 commits into from

Conversation

MarinaProsche
Copy link
Collaborator

Задача:
#532

app/server.py Outdated
Comment on lines 733 to 735
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)
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправлено.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants