App Package

Module contents

Flask Application Configuration and Initialization.

This script configures and initializes a Flask application with various extensions, including Flask SQLAlchemy for database management, Flask Migrate for database migrations, Flask Bcrypt for password hashing, and registers blueprints for different parts of the application.

Usage:

This script is intended to be imported and used by other scripts or modules within the Flask app.

Example

from app import app, db, migrate, bcrypt

if __name__ == ‘__main__’:

‘’’for development only’’’ app.run(debug=True)

if __name__ == ‘__main__’:

‘’’for deployment’’’ app.run()

app.internal_server_error(e)

Handles Global 500 errors.

app.page_not_found(e)

Handles Global 404 errors.

Subpackages