When to use this skill
Use this skill whenever the user wants to:
- Write Python web applications, routes, templates, and extensions with Flask
- Configure WSGI, blueprints, configuration, and deployment
How to use this skill
- Core:Flask(name)、@app.route、request、render_template;Jinja2。
- Advanced: Blueprint, Flask-SQLAlchemy, configuration and environment variables; g, session.
- Reference:https://flask.palletsprojects.com/
Best Practices
- Application factory and blueprint separation; sensitive configuration must not be stored in the database.
- Use Gunicorn/uWSGI in production; CSRF and security headers.
Keywords
flask, Python Web, routing, templates