Tweak to default config for static storage
This commit is contained in:
@@ -19,11 +19,11 @@ def runserver():
|
|||||||
HOST = '0.0.0.0'
|
HOST = '0.0.0.0'
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
app.config['FILE_STORAGE'] = '{0}/application/static/storage'.format(
|
app.config['FILE_STORAGE'] = '{0}/application/static/storage'.format(
|
||||||
os.path.join(os.path.dirname(__file__)))
|
os.path.dirname(os.path.realpath(__file__)))
|
||||||
|
|
||||||
# Automatic creation of FILE_STORAGE path if it's missing
|
# Automatic creation of FILE_STORAGE path if it's missing
|
||||||
if not os.path.exists(app.config['FILE_STORAGE']):
|
if not os.path.exists(app.config['FILE_STORAGE']):
|
||||||
os.mkdir(app.config['FILE_STORAGE'])
|
os.makedirs(app.config['FILE_STORAGE'])
|
||||||
|
|
||||||
app.run(
|
app.run(
|
||||||
port=PORT,
|
port=PORT,
|
||||||
|
Reference in New Issue
Block a user