From 86d11009f68fa1d0d4b746a2f772b1eee9ef0695 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Wed, 24 Feb 2021 10:03:59 +0100 Subject: [PATCH] Configure settings.py for deployment --- wish/settings.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wish/settings.py b/wish/settings.py index c6ae331..70516b6 100644 --- a/wish/settings.py +++ b/wish/settings.py @@ -30,7 +30,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['wish.ledoian.cz'] # Application definition @@ -95,7 +95,13 @@ if DEBUG: } } else: - ... + DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'wish', + 'USER': 'wish', + } + } # Password validation