File tree 5 files changed +15
-0
lines changed
5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ web : gunicorn deployProject.wsgi --log-file -
Original file line number Diff line number Diff line change 119
119
# https://docs.djangoproject.com/en/2.0/howto/static-files/
120
120
121
121
STATIC_URL = '/static/'
122
+ STATIC_ROOT = os .path .join (BASE_DIR , 'staticfiles' )
123
+ import dj_database_url
124
+ db_from_env = dj_database_url .config ()
125
+ DATABASES ['default' ].update (db_from_env )
Original file line number Diff line number Diff line change 14
14
os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "pizza.settings" )
15
15
16
16
application = get_wsgi_application ()
17
+
18
+ # Use whitenoise package to serve static files on Heroku
19
+ from whitenoise .django import DjangoWhiteNoise
20
+ application = DjangoWhiteNoise (application )
Original file line number Diff line number Diff line change 1
1
Django == 2.0.3
2
+ python-3.7.0
3
+ whitenoise == 3.2.1
4
+ gunicorn == 19.6.0
5
+ dj-database-url == 0.5.0
6
+ psycopg2 == 2.7.1
Original file line number Diff line number Diff line change
1
+ python-3.7.0
You can’t perform that action at this time.
0 commit comments