From 65ce04cac4fac098963231c34e1453360d4b8c34 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Mon, 11 May 2015 14:08:58 +0200 Subject: [PATCH] Tweak to default config for static storage --- attract/manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attract/manage.py b/attract/manage.py index d13ced3f..b656126b 100644 --- a/attract/manage.py +++ b/attract/manage.py @@ -19,11 +19,11 @@ def runserver(): HOST = '0.0.0.0' DEBUG = True 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 if not os.path.exists(app.config['FILE_STORAGE']): - os.mkdir(app.config['FILE_STORAGE']) + os.makedirs(app.config['FILE_STORAGE']) app.run( port=PORT,