mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-22 16:02:16 +00:00
Readd definition for databases
This commit is contained in:
@@ -65,6 +65,25 @@ WSGI_APPLICATION = 'PyRIGS.wsgi.application'
|
|||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
||||||
|
try:
|
||||||
|
import pymysql
|
||||||
|
pymysql.install_as_MySQLdb()
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||||
|
},
|
||||||
|
'legacy': {
|
||||||
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
|
'HOST': 'alfie.codedinternet.com',
|
||||||
|
'NAME': 'tec_rigs',
|
||||||
|
'USER': 'tec_rigs',
|
||||||
|
'PASSWORD': 'xMNb(b+Giu]&',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
import dj_database_url
|
import dj_database_url
|
||||||
DATABASES['default'] = dj_database_url.config()
|
DATABASES['default'] = dj_database_url.config()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user