Updated config closer to production

parent ce54a5c7
Pipeline #1390 passed with stage
in 3 minutes and 19 seconds
...@@ -7,7 +7,7 @@ from . import secret ...@@ -7,7 +7,7 @@ from . import secret
DEBUG = False DEBUG = False
TEMPLATE_DEBUG = False TEMPLATE_DEBUG = False
ALLOWED_HOSTS = ['127.0.0.1'] ALLOWED_HOSTS = ['roomlist.gmu.edu']
PIWIK_DOMAIN_PATH = 'https://piwik.srct.gmu.edu/' PIWIK_DOMAIN_PATH = 'https://piwik.srct.gmu.edu/'
PIWIK_SITE_ID = 4 PIWIK_SITE_ID = 4
...@@ -15,11 +15,11 @@ PIWIK_SITE_ID = 4 ...@@ -15,11 +15,11 @@ PIWIK_SITE_ID = 4
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'NAME': '', 'NAME': secret.DB_NAME,
'USER': '', 'USER': secret.DB_USER,
'PASSWORD': secret.DB_PASSWORD, 'PASSWORD': secret.DB_PASSWORD,
'HOST': '', 'HOST': secret.DB_HOST,
'PORT': '', 'PORT': secret.DB_PORT,
} }
} }
...@@ -70,13 +70,22 @@ LOGGING = { ...@@ -70,13 +70,22 @@ LOGGING = {
# the ones the print everything out to the terminal # the ones the print everything out to the terminal
# and the ones that email on SuspiciousOperation occurrences # and the ones that email on SuspiciousOperation occurrences
'disable_existing_loggers': False, 'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s',
},
'simple': {
'format': '%(levelname)s %(asctime)s %(message)s'
},
},
'handlers': { 'handlers': {
'file': { 'file': {
'level': 'WARNING', 'level': 'WARNING',
'class': 'logging.FileHandler', 'class': 'logging.FileHandler',
'formatter': 'verbose',
# make sure to change this to the proper path, and one that # make sure to change this to the proper path, and one that
# can be written to # can be written to
'filename': '/path/to/django/debug.log', 'filename': '/srv/roomlist/debug.log',
}, },
# 'mail_admins' by default does not include a traceback attachment # 'mail_admins' by default does not include a traceback attachment
# setting 'include_html' to True will attach an html traceback file to the email # setting 'include_html' to True will attach an html traceback file to the email
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment