From 7551054bd50760291e48eb23726313a446216c01 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 18 Nov 2018 18:45:23 +0100 Subject: [PATCH] Move upload folder to static defaults. I can configure this path on the SyncThing side, so it is fine for it to be in the application source folder for now. Potentially easier to arrange backup as well. --- xppl/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)