[open-event-legacy] Seems static (and exports) files are being generated within uploads



commit ed56fd3fcc145094dd3da8691f251cda072cfb64
Author: Andrea Veri <averi redhat com>
Date:   Fri Jun 7 17:20:27 2019 +0200

    Seems static (and exports) files are being generated within uploads

 app/views/utils_routes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/views/utils_routes.py b/app/views/utils_routes.py
index 572f883c..9d7b90a7 100644
--- a/app/views/utils_routes.py
+++ b/app/views/utils_routes.py
@@ -253,7 +253,7 @@ def serve_static(filename):
     system will be using it, it's OK.
     Static files in production are stored on AWS so this won't be used
     """
-    return send_from_directory(current_app.config['BASE_DIR'] + '/static/', filename)
+    return send_from_directory(current_app.config['BASE_DIR'] + '/static/' + 'uploads/', filename)
 
 
 @utils_routes.route('/favicon.ico')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]