SuperAPI AI Directory

flask

Coding & development

View repository

Updated 10-15 21:48

About this skill

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

  1. Core:Flask(name)、@app.route、request、render_template;Jinja2。
  2. Advanced: Blueprint, Flask-SQLAlchemy, configuration and environment variables; g, session.
  3. 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