""" Application Configuration Configure database backend and other settings """ import os # Database Configuration # Set to True to use SQLite, False to use JSON files USE_DATABASE = False # Database URI for SQLite basedir = os.path.abspath(os.path.dirname(__file__)) DATABASE_URI = f"sqlite:///{os.path.join(basedir, 'data', 'products.db')}" # JSON data directory DATA_DIR = os.path.join(basedir, 'data') # Shared handoff directory used by quote submission flow _default_shared_dir = os.path.abspath(os.path.join(basedir, '..', 'shared')) SHARED_DIR = os.environ.get('SHARED_DIR', _default_shared_dir) QUOTE_OUTGOING_DIR = os.environ.get('QUOTE_OUTGOING_DIR', os.path.join(SHARED_DIR, 'outgoing')) # Session configuration SESSION_COOKIE_HTTPONLY = True SESSION_COOKIE_SAMESITE = 'Lax' # SQLAlchemy configuration SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_ECHO = False # Set to True for SQL debugging