[open-event-legacy] Revert "Seems static (and exports) files are being generated within uploads"
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [open-event-legacy] Revert "Seems static (and exports) files are being generated within uploads"
- Date: Fri, 7 Jun 2019 15:31:01 +0000 (UTC)
commit b17cc5244073257c2768f23fb45f22b2e5c78779
Author: Andrea Veri <averi redhat com>
Date: Fri Jun 7 17:30:55 2019 +0200
Revert "Seems static (and exports) files are being generated within uploads"
This reverts commit ed56fd3fcc145094dd3da8691f251cda072cfb64.
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 9d7b90a7..572f883c 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/' + 'uploads/', filename)
+ return send_from_directory(current_app.config['BASE_DIR'] + '/static/', filename)
@utils_routes.route('/favicon.ico')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]