Merge pull request #2609 from alphagov/remove-whitenoise

Remove WhiteNoise
This commit is contained in:
Chris Hill-Scott
2019-01-02 10:13:42 +00:00
committed by GitHub
3 changed files with 5 additions and 17 deletions
+2 -12
View File
@@ -1,16 +1,6 @@
import os
from flask import Flask from flask import Flask
from whitenoise import WhiteNoise
from app import create_app from app import create_app
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) application = Flask('app')
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'app', 'static')
STATIC_URL = 'static/'
flask_app = Flask('app') create_app(application)
create_app(flask_app)
application = WhiteNoise(flask_app.wsgi_app, STATIC_ROOT, STATIC_URL, max_age=WhiteNoise.FOREVER)
-1
View File
@@ -14,7 +14,6 @@ pyexcel-xlsx==0.5.6
pyexcel-ods3==0.5.3 pyexcel-ods3==0.5.3
pytz==2018.7 pytz==2018.7
gunicorn==19.7.1 # >19.8 stops eventlet workers after a timeout gunicorn==19.7.1 # >19.8 stops eventlet workers after a timeout
whitenoise==4.1.2 #manages static assets
eventlet==0.24.1 eventlet==0.24.1
notifications-python-client==5.2.0 notifications-python-client==5.2.0
+3 -4
View File
@@ -16,7 +16,6 @@ pyexcel-xlsx==0.5.6
pyexcel-ods3==0.5.3 pyexcel-ods3==0.5.3
pytz==2018.7 pytz==2018.7
gunicorn==19.7.1 # >19.8 stops eventlet workers after a timeout gunicorn==19.7.1 # >19.8 stops eventlet workers after a timeout
whitenoise==4.1.2 #manages static assets
eventlet==0.24.1 eventlet==0.24.1
notifications-python-client==5.2.0 notifications-python-client==5.2.0
@@ -29,10 +28,10 @@ itsdangerous==0.24 # pyup: <1.0.0
git+https://github.com/alphagov/notifications-utils.git@30.7.1#egg=notifications-utils==30.7.1 git+https://github.com/alphagov/notifications-utils.git@30.7.1#egg=notifications-utils==30.7.1
## The following requirements were added by pip freeze: ## The following requirements were added by pip freeze:
awscli==1.16.75 awscli==1.16.80
bleach==2.1.3 bleach==2.1.3
boto3==1.6.16 boto3==1.6.16
botocore==1.12.65 botocore==1.12.70
certifi==2018.11.29 certifi==2018.11.29
chardet==3.0.4 chardet==3.0.4
Click==7.0 Click==7.0
@@ -76,5 +75,5 @@ urllib3==1.24.1
webencodings==0.5.1 webencodings==0.5.1
Werkzeug==0.14.1 Werkzeug==0.14.1
WTForms==2.2.1 WTForms==2.2.1
xlrd==1.1.0 xlrd==1.2.0
xlwt==1.3.0 xlwt==1.3.0