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