finalized settings.py

This commit is contained in:
Rushil Umaretiya 2020-12-13 14:42:41 -05:00
parent fa11563c30
commit 11474ecb96
No known key found for this signature in database
GPG Key ID: 4E8FAF9C926AF959

View File

@ -25,7 +25,7 @@ SECRET_KEY = "^0n$28f^vwgqqrt2y5o-c3-d8pgzcgv0%uqd%j_c-!!1a(te+!"
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['donot.space']
# Application definition # Application definition
@ -88,24 +88,23 @@ WSGI_APPLICATION = "config.wsgi.application"
# Database # Database
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases # https://docs.djangoproject.com/en/3.1/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
}
}
#DATABASES = { #DATABASES = {
# 'default': { # "default": {
# 'ENGINE' : 'django_cockroachdb', # "ENGINE": "django.db.backends.sqlite3",
# 'NAME' : 'spaceout', # "NAME": BASE_DIR / "db.sqlite3",
# 'USER' : 'spaceout', # }
# 'PASSWORD': r"eVYfYQ`W.`y3AW%'[hdyVR.cn,_[mP5h,$~.7#(8SM8@Z8=T:(",
# 'HOST' : 'spaceout-86g.gcp-us-east4.cockroachlabs.cloud',
# 'PORT' : 26257,
# }
#} #}
DATABASES = {
'default': {
'ENGINE' : 'django_cockroachdb',
'NAME' : 'spaceout',
'USER' : 'spaceout',
'PASSWORD': r"eVYfYQ`W.`y3AW%'[hdyVR.cn,_[mP5h,$~.7#(8SM8@Z8=T:(",
'HOST' : 'spaceout-86g.gcp-us-east4.cockroachlabs.cloud',
'PORT' : 26257,
}
}
# Password validation # Password validation
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators # https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators