mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 05:28:03 +00:00
Disable use of MySQL for further debugging
This commit is contained in:
16
config.py
16
config.py
@@ -99,14 +99,14 @@ if not 'default' in DATABASES:
|
||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||
}
|
||||
|
||||
if 'MYSQL_DATABASE' in os.environ:
|
||||
DATABASES['default'] = {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': os.environ['MYSQL_DATABASE'],
|
||||
'USER': os.environ['MYSQL_USER'],
|
||||
'PASSWORD': os.environ['MYSQL_PASSWORD'],
|
||||
'HOST': 'mysql',
|
||||
}
|
||||
#if 'MYSQL_DATABASE' in os.environ:
|
||||
# DATABASES['default'] = {
|
||||
# 'ENGINE': 'django.db.backends.mysql',
|
||||
# 'NAME': os.environ['MYSQL_DATABASE'],
|
||||
# 'USER': os.environ['MYSQL_USER'],
|
||||
# 'PASSWORD': os.environ['MYSQL_PASSWORD'],
|
||||
# 'HOST': 'mysql',
|
||||
# }
|
||||
|
||||
if os.path.isfile(os.path.join(BASE_DIR, 'config_local.py')):
|
||||
from config_local import * # noqa # flake8: noqa # NOQA # pragma: no cover
|
||||
|
||||
Reference in New Issue
Block a user