[chronojump-server] Added photos_dir parameter into chronojump.conf file, to set absolut path to photos_dir
- From: Marcos Venteo Garcia <mventeo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] Added photos_dir parameter into chronojump.conf file, to set absolut path to photos_dir
- Date: Wed, 5 Jul 2017 18:07:42 +0000 (UTC)
commit cb61283a5aa0d04701a40dc3e7dd251213aaf4b7
Author: Marcos Venteo GarcĂa <mventeo gmail com>
Date: Wed Jul 5 20:07:34 2017 +0200
Added photos_dir parameter into chronojump.conf file, to set absolut path to photos_dir
chronojumpserver/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/chronojumpserver/__init__.py b/chronojumpserver/__init__.py
index 3b15f7d..5cbd69d 100755
--- a/chronojumpserver/__init__.py
+++ b/chronojumpserver/__init__.py
@@ -23,7 +23,7 @@ app.config['MYSQL_DATABASE_HOST'] = config.get("db", "server")
app.config['CLUB_NAME'] = config.get("club", "name")
app.secret_key = config.get("security", "secret_key")
app.config['SECRET_KEY'] = app.secret_key
-app.config['UPLOAD_FOLDER'] = "static/images/photos"
+app.config['UPLOAD_FOLDER'] = config.get("api", "photos_dir")
# Check if the UPLOAD_FOLDER exists
_path = os.path.join('chronojumpserver', app.config['UPLOAD_FOLDER'] )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]