
import os
BASE_DIR = os.path.abspath(os.path.dirname(__file__))  

class Config(object):

    ENV='development'
    # Statement for enabling the development environment
    DEBUG = True


    # Database
    DB_CONNECTION='mysql'
    DB_HOST='127.0.0.1'
    DB_PORT='3306'
    DB_DATABASE='flask1'
    DB_USERNAME='root'
    DB_PASSWORD=''
    SQLALCHEMY_DATABASE_URI = f'{DB_CONNECTION}://{DB_USERNAME}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_DATABASE}'
    DATABASE_CONNECT_OPTIONS = {}

    # Application threads. A common general assumption is
    # using 2 per available processor cores - to handle
    # incoming requests using one and performing background
    # operations using the other.
    THREADS_PER_PAGE = 2

    # Enable protection agains *Cross-site Request Forgery (CSRF)*
    CSRF_ENABLED     = True

    # Use a secure, unique and absolutely secret key for
    # signing the data. 
    CSRF_SESSION_KEY = "secret"

    # Secret key for signing cookies
    SECRET_KEY = "secret"