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
class Config(object):
"""
Common configurations
"""
class DevelopmentConfig(Config):
"""
Development configurations
"""
DEBUG = True
SQLALCHEMY_ECHO = True
class ProductionConfig(Config):
"""
Production configurations
"""
DEBUG = False
app_config = {
'development': DevelopmentConfig,
'production': ProductionConfig
}