From c38fff5bc711c7246cb4256725a6d2df4a3910d9 Mon Sep 17 00:00:00 2001 From: humanauction Date: Tue, 27 Jan 2026 09:28:56 +0000 Subject: [PATCH] Add: Procfile: revert wsgi; Add: settings: allowed hosts for deployment, format email. --- Procfile | 2 +- config/settings.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Procfile b/Procfile index 8001d1a..93e59a2 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn app:app \ No newline at end of file +web: gunicorn wsgi \ No newline at end of file diff --git a/config/settings.py b/config/settings.py index 43dc196..f6dfdcd 100644 --- a/config/settings.py +++ b/config/settings.py @@ -24,6 +24,8 @@ "deanery-11c659a713eb.herokuapp.com", "127.0.0.1", "localhost", + '74.220.49.0/24', + '74.220.57.0/24' ] CSRF_TRUSTED_ORIGINS = [ @@ -160,7 +162,10 @@ EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER') EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD') EMAIL_USE_TLS = True - DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', 'noreply@ncd.com') + DEFAULT_FROM_EMAIL = os.environ.get( + 'DEFAULT_FROM_EMAIL', + 'noreply@ncd.com' + ) # Security settings for production if not DEBUG: