akindices/config.py
Matthew Dillon 0826f45b49 WIP
2015-06-22 13:09:41 -08:00

26 lines
555 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://user:pass@localhost/akindices'
config = {
'development': DevelopmentConfig,
'default': DevelopmentConfig
}