From ebd99165e9473e4b0f93574c3d0aa9a5c8090841 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 25 May 2018 15:23:55 +0100 Subject: Fix static routing error --- app/views/__init__.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'app/views') diff --git a/app/views/__init__.py b/app/views/__init__.py index 37474de..a296e5d 100644 --- a/app/views/__init__.py +++ b/app/views/__init__.py @@ -31,11 +31,6 @@ cache = SimpleCache() def domain(url): return urlparse(url).netloc -# Use nginx to serve files on production instead -@app.route("/static/") -def send_static(path): - return send_from_directory("public/static", path) - @app.route("/uploads/") def send_upload(path): return send_from_directory("public/uploads", path) -- cgit v1.2.3