Merge pull request #2546 from alphagov/make-whitenoise-audible

Make Whitenoise serve static assets
This commit is contained in:
Chris Hill-Scott
2018-11-29 13:35:49 +00:00
committed by GitHub

View File

@@ -12,4 +12,4 @@ STATIC_URL = 'static/'
app = Flask('app')
create_app(app)
application = WhiteNoise(app, STATIC_ROOT, STATIC_URL)
app.wsgi_app = WhiteNoise(app.wsgi_app, STATIC_ROOT, STATIC_URL, max_age=WhiteNoise.FOREVER)