diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..c93b75c --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn wayfayer_project.wsgi --log-file - \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 32a5650..02be934 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..f8624ef --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +python-3.8.2 \ No newline at end of file diff --git a/wayfayer_project/settings.py b/wayfayer_project/settings.py index 77d0f49..28bfc9b 100644 --- a/wayfayer_project/settings.py +++ b/wayfayer_project/settings.py @@ -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'. @@ -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/' @@ -139,4 +140,6 @@ EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD', default='') EMAIL_PORT = 587 EMAIL_USE_TLS = True -EMAIL_USE_SSL = False \ No newline at end of file +EMAIL_USE_SSL = False + +django_on_heroku.settings(locals()) \ No newline at end of file