from os import path

class Config(object):
    """Base config class."""
    SECRET_KEY = '29693eaa35867118e267082e9060d194'

class ProdConfig(Config):
    """Production config class."""
    pass

class DevConfig(Config):
    """Development config class."""
    # Open the DEBUG
    DEBUG = True

    # MySQL connection
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:560320@localhost:3306/flask_stu'
    # SQLite connection
    #SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'

class Dev2Config(Config):
    """Development config class."""
    # Open the DEBUG
    DEBUG = True

    # MySQL connection
    #SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:560320@localhost:3306/flask_stu'
    # SQLite connection
    SQLALCHEMY_DATABASE_URI = 'sqlite://'+path.join(path.pardir,'database.db')


