File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ web : gunicorn movie_recommender.wsgi --log-file -
Original file line number Diff line number Diff line change 23
23
SECRET_KEY = '40_$n*hs61m(shf^y0q6&th7i^b!t1rw6k-458_0)ed34ji73v'
24
24
25
25
# SECURITY WARNING: don't run with debug turned on in production!
26
- DEBUG = True
26
+ DEBUG = False
27
27
28
- ALLOWED_HOSTS = []
28
+ ALLOWED_HOSTS = ['awesome-movie-recommender.herokuapp.com' , '127.0.0.1' ]
29
29
30
30
31
31
# Application definition
42
42
43
43
MIDDLEWARE = [
44
44
'django.middleware.security.SecurityMiddleware' ,
45
+ 'whitenoise.middleware.WhiteNoiseMiddleware' ,
45
46
'django.contrib.sessions.middleware.SessionMiddleware' ,
46
47
'django.middleware.common.CommonMiddleware' ,
47
48
'django.middleware.csrf.CsrfViewMiddleware' ,
118
119
# Static files (CSS, JavaScript, Images)
119
120
# https://docs.djangoproject.com/en/3.0/howto/static-files/
120
121
122
+ STATIC_ROOT = os .path .join (BASE_DIR , 'staticfiles' )
121
123
STATIC_URL = '/static/'
122
124
STATICFILES_DIRS = [
123
125
os .path .join (BASE_DIR , "static" ),
You can’t perform that action at this time.
0 commit comments