Configure settings.py for deployment

newer-dal
LEdoian 4 years ago
parent 57601de96d
commit 86d11009f6

@ -30,7 +30,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['wish.ledoian.cz']
# Application definition # Application definition
@ -95,7 +95,13 @@ if DEBUG:
} }
} }
else: else:
... DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'wish',
'USER': 'wish',
}
}
# Password validation # Password validation

Loading…
Cancel
Save