mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
34 lines
615 B
Python
34 lines
615 B
Python
import os
|
|
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
class Config:
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
|
|
@staticmethod
|
|
def init_app(app):
|
|
pass
|
|
|
|
|
|
class DevelopmentConfig(Config):
|
|
DEBUG = True
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'data_dev.sqlite')
|
|
|
|
|
|
# class TestingConfig(Config):
|
|
|
|
|
|
# class ProductionConfig(Config):
|
|
|
|
|
|
config = {
|
|
'development': DevelopmentConfig,
|
|
# 'testing': TestingConfig,
|
|
# 'production': ProductionConfig,
|
|
|
|
'default': DevelopmentConfig
|
|
}
|