26 lines
554 B
Python
26 lines
554 B
Python
import os
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
class Config:
|
|
SECRET_KEY = os.environ.get('SECRET_KEY')
|
|
APP_NAME = 'AKIndices'
|
|
APP_VERSION = '0.2.0'
|
|
|
|
@staticmethod
|
|
def init_app(app):
|
|
pass
|
|
|
|
|
|
class DevelopmentConfig(Config):
|
|
DEBUG = True
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or 'top secret'
|
|
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
|
|
'postgres://postgres@localhost/akindices'
|
|
|
|
|
|
config = {
|
|
'development': DevelopmentConfig,
|
|
|
|
'default': DevelopmentConfig
|
|
}
|