Put prod setings

prod
Laurent 2 years ago
parent 0031d32284
commit ac1fb0aaec
  1. 13
      enchant_server/settings.py

@ -24,9 +24,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-fw*y$0ozm)bmmm+e6(0d#+j7m(@(etgr@012g5%3@jsn3jtl1u'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition
@ -78,8 +78,13 @@ WSGI_APPLICATION = 'enchant_server.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
#'ENGINE': 'django.db.backends.sqlite3',
#'NAME': BASE_DIR / 'db.sqlite3',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'stax_enchant_chat',
'USER': 'stax',
'PASSWORD': 'staxkikoo',
'HOST': 'postgresql-stax.alwaysdata.net',
}
}

Loading…
Cancel
Save