BookingService/BookingService/settings_production.py

24 lines
500 B
Python

from .settings import *
DEBUG = False
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'code.wh.sdu.edu.cn']
SECURE_SSL_REDIRECT = True
# lower version of chrome and edge do not support same-site flag
SESSION_COOKIE_SAMESITE = None
CSRF_COOKIE_SAMESITE = None
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'bookingservice',
'USER': 'postgres',
'PASSWORD': 'sduwhsduwh',
'HOST': '172.17.0.1',
'PORT': '5432',
}
}