Web · library
Flask
Websites in Python on your own computer: routes, templates, forms, JSON APIs and sessions — ending with a business card site with a contact form. Tasks are checked with the Flask test client, and “Run” opens the site in your browser. CodinGame-style tasks: a ready app with a broken part to fix.
6 topics · 16 challengesChallenges solved0 of 16
- 01ContinueУстановкаPython, редактор кода, библиотека flask и мост CodeWithMe0 / 1
- 02Маршруты и ответыFlask(__name__), @app.route, переменные в адресе <int:n>, коды ответа, abort, test_client0 / 3
- 03Шаблоны Jinjarender_template и render_template_string, {{ }} и {% %}, циклы и условия, фильтры, автоэкранирование и |safe0 / 3
- 04Формы и запросыmethods=["GET", "POST"], request.form, request.args.get(type=int, default), проверка данных, redirect и url_for0 / 3
- 05JSON-APIjsonify и словари в ответе, request.get_json(silent=True), коды 201, 400, 404, 405, методы PUT и DELETE0 / 3
- 06Сессии, вход и страницы ошибокsecret_key и session, вход владельца, hmac.compare_digest, @app.errorhandler, итоговая сайт-визитка0 / 3