Move DB and whitelist localhost

This commit is contained in:
Tanner Collin 2020-01-16 23:15:37 +00:00
parent dc50eb13d0
commit 699449e1f1

View File

@ -33,6 +33,8 @@ ALLOWED_HOSTS = []
if DEBUG:
ALLOWED_HOSTS += [
'localhost',
'127.0.0.1',
'spaceport-api.dns.t0.vc',
'api.spaceport.dns.t0.vc',
]
@ -95,7 +97,7 @@ WSGI_APPLICATION = 'apiserver.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'NAME': os.path.join(BASE_DIR, 'data/db.sqlite3'),
},
'old_portal': {
'ENGINE': 'django.db.backends.sqlite3',