Skip to content

Commit 76ae5e2

Browse files
committed
heroku deployment
1 parent 72670cf commit 76ae5e2

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn movie_recommender.wsgi --log-file -

db.sqlite3

0 Bytes
Binary file not shown.

movie_recommender/settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
SECRET_KEY = '40_$n*hs61m(shf^y0q6&th7i^b!t1rw6k-458_0)ed34ji73v'
2424

2525
# SECURITY WARNING: don't run with debug turned on in production!
26-
DEBUG = True
26+
DEBUG = False
2727

28-
ALLOWED_HOSTS = []
28+
ALLOWED_HOSTS = ['awesome-movie-recommender.herokuapp.com','127.0.0.1']
2929

3030

3131
# Application definition
@@ -42,6 +42,7 @@
4242

4343
MIDDLEWARE = [
4444
'django.middleware.security.SecurityMiddleware',
45+
'whitenoise.middleware.WhiteNoiseMiddleware',
4546
'django.contrib.sessions.middleware.SessionMiddleware',
4647
'django.middleware.common.CommonMiddleware',
4748
'django.middleware.csrf.CsrfViewMiddleware',
@@ -118,6 +119,7 @@
118119
# Static files (CSS, JavaScript, Images)
119120
# https://docs.djangoproject.com/en/3.0/howto/static-files/
120121

122+
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
121123
STATIC_URL = '/static/'
122124
STATICFILES_DIRS = [
123125
os.path.join(BASE_DIR, "static"),

requirements.txt

392 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)