diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-05-25 15:23:55 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-05-25 15:23:55 +0100 |
| commit | ebd99165e9473e4b0f93574c3d0aa9a5c8090841 (patch) | |
| tree | 759dce0974f75730759a5c5c8051350e2235e3f4 /app/views | |
| parent | 3565058eea6f2ec8f47b0afce068ed0c5e801981 (diff) | |
| download | cheatdb-ebd99165e9473e4b0f93574c3d0aa9a5c8090841.tar.xz | |
Fix static routing error
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/__init__.py | 5 |
1 files changed, 0 insertions, 5 deletions
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/<path:path>") -def send_static(path): - return send_from_directory("public/static", path) - @app.route("/uploads/<path:path>") def send_upload(path): return send_from_directory("public/uploads", path) |
