Tweaks to file_server initialisation

We are setting a sensible default for the storage folder and loading
that automatically, this way we avoid having a compulsory config file.
This commit is contained in:
2015-04-24 11:57:40 +02:00
parent 74e875a338
commit 770838f0fc
4 changed files with 23 additions and 22 deletions

View File

@@ -1,6 +1,5 @@
import os
class Config(object):
# Configured for GMAIL
MAIL_SERVER = ''
@@ -20,19 +19,10 @@ class Config(object):
SECURITY_PASSWORD_SALT = ''
SECURITY_EMAIL_SENDER = ''
class Development(Config):
SECRET_KEY = ''
#SERVER_NAME = 'attract.local:5555'
HOST = '0.0.0.0'
PORT = 5000
DEBUG = True
SQLALCHEMY_DATABASE_URI = ''
SECURITY_REGISTERABLE = True
SECURITY_LOGIN_USER_TEMPLATE = 'security/login_user.html'
MEDIA_FOLDER = ''
MEDIA_URL = ''
MEDIA_THUMBNAIL_FOLDER = ''
MEDIA_THUMBNAIL_URL = ''
FILE_STORAGE = '{0}/application/static/storage'.format(
os.path.join(os.path.dirname(__file__)))