Skip to content

Commit

Permalink
New files for Heroku config
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoomIsland committed Aug 10, 2020
1 parent 4d146d1 commit 8dbff2e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn wayfayer_project.wsgi --log-file -
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
asgiref==3.2.10
dj-database-url==0.5.0
Django==3.1
django-on-heroku==1.0.1
gunicorn==20.0.4
Pillow==7.2.0
psycopg2==2.8.5
psycopg2-binary==2.8.5
python-decouple==3.3
pytz==2020.1
six==1.15.0
sqlparse==0.3.1
whitenoise==5.2.0
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.8.2
7 changes: 5 additions & 2 deletions wayfayer_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
https://docs.djangoproject.com/en/3.1/ref/settings/
"""

import os
import django_on_heroku
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -122,7 +124,6 @@
LOGOUT_REDIRECT_URL = '/'

# Media detail (from https://www.geeksforgeeks.org/python-uploading-images-in-django/)
import os
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

Expand All @@ -139,4 +140,6 @@
EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD', default='')
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_USE_SSL = False
EMAIL_USE_SSL = False

django_on_heroku.settings(locals())

0 comments on commit 8dbff2e

Please sign in to comment.