python project structure db server vue flash crud code example

Example 1: sqlite3 with flask web application CRUD pdf

pip install flask-bootstrap

Example 2: sqlite3 with flask web application CRUD pdf

# config.py

class Config(object):
    """
    Common configurations
    """

    # Put any configurations here that are common across all environments

class DevelopmentConfig(Config):
    """
    Development configurations
    """

    DEBUG = True
    SQLALCHEMY_ECHO = True

class ProductionConfig(Config):
    """
    Production configurations
    """

    DEBUG = False

app_config = {
    'development': DevelopmentConfig,
    'production': ProductionConfig
}