11 lines
353 B
Python
11 lines
353 B
Python
import os
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
class Config:
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or "thesecretkey"
|
|
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI')\
|
|
or 'sqlite:///' + os.path.join(basedir, 'instance\\adogapet.db')
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
SESSION_TYPE = 'sqlalchemy' |