Updated server config to use mysql

This commit is contained in:
Zakary Timson 2018-01-12 00:01:41 -05:00
parent 912a5dcb25
commit 53f5fdced8
2 changed files with 8 additions and 6 deletions

View File

@ -13,7 +13,7 @@ https://docs.djangoproject.com/en/1.11/ref/settings/
import os import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_URL = 'http://oacpl.zakscode.com' BASE_URL = 'http://oacpl.org'
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -95,11 +95,12 @@ WSGI_APPLICATION = 'OACPL.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql', 'ENGINE': 'django.db.backends.mysql',
'NAME': 'postgres', 'NAME': 'oacpl',
'USER': 'postgres', 'USER': 'root',
'HOST': 'db', 'PASSWORD': 'b5q?E8bhE7br*~)Y',
'PORT': 5432, 'HOST': 'localhost',
'PORT': 3306,
} }
} }

View File

@ -2,5 +2,6 @@ bootstrap-admin==0.3.7.1
Django==1.11.5 Django==1.11.5
django-forms-bootstrap==3.1.0 django-forms-bootstrap==3.1.0
django-tinymce4-lite==1.7.0 django-tinymce4-lite==1.7.0
mysqlclient==1.3.12
Pillow==4.2.1 Pillow==4.2.1
requests==2.11.1 requests==2.11.1