diff --git a/xppl/config.py b/xppl/config.py index 2cba99b..9de87af 100644 --- a/xppl/config.py +++ b/xppl/config.py @@ -12,6 +12,9 @@ class Base(): TESTING = False SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_DATABASE_URI = 'rqlite+pyrqlite://localhost:4001/' + UPLOAD_FOLDER_COVER = join(BASEDIR, 'cover') + UPLOAD_FOLDER = join(BASEDIR, 'uploads') + LIGHT = not isdir(UPLOAD_FOLDER) class Production(Base): @@ -27,6 +30,3 @@ class Development(Base): TESTING = True DOMAIN = 'http://localhost' SECRET_KEY = urandom(24).hex() - UPLOAD_FOLDER_COVER = join(BASEDIR, 'cover') - UPLOAD_FOLDER = join(BASEDIR, 'uploads') - LIGHT = not isdir(UPLOAD_FOLDER)