Added ALLOWED_HOSTS

This commit is contained in:
Benjamyn 2020-11-03 09:30:15 +11:00
parent 125fe62da0
commit f1cc87c037

View File

@ -25,7 +25,7 @@ SECRET_KEY = 'cq3daur*kk2+*-)@s%wq1c+pc7xi-c1ig@-%wq)m7pn3+zxbre'
# 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 = ['10.6.9.42'] ALLOWED_HOSTS = ['10.6.9.42', 'benjamyn.love', 'localhost']
# Application definition # Application definition
@ -80,9 +80,9 @@ WSGI_APPLICATION = 'migratorapi.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'NAME': 'migration', 'NAME': 'devmigs',
'USER': 'migration', 'USER': 'devmig',
'PASSWORD': 'migration123', 'PASSWORD': 'XXgDh1i6w8rqp4BG',
'HOST': '127.0.0.1', 'HOST': '127.0.0.1',
'PORT': '3306', 'PORT': '3306',
} }