Skip to content

Commit

Permalink
Reverted settings.py to original format
Browse files Browse the repository at this point in the history
  • Loading branch information
MGS-sails committed Aug 8, 2024
1 parent 2894ceb commit b79c8ce
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions emgcli/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@
},
},
'loggers': {
'emgena': {
'emgena': {
'handlers': ['notify'],
'level': 'INFO',
'propagate': False
},
'emgapianns.management.commands': {
'emgapianns.management.commands': {
'handlers': ['default', 'console'],
'level': 'INFO',
'propagate': False
Expand Down Expand Up @@ -324,16 +324,7 @@ def create_secret_key(var_dir):

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
try:
# DATABASES = EMG_CONF['emg']['databases']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'emg',
'USER': 'root',
'HOST': 'mysql',
'PORT': '3306',
}
}
DATABASES = EMG_CONF['emg']['databases']
except KeyError:
raise KeyError("Config must container default database.")

Expand All @@ -348,8 +339,8 @@ def create_secret_key(var_dir):
if 'ena' in DATABASES and 'ena_pro' not in DATABASES:
DATABASES['ena_pro'] = DATABASES['ena']

# this is required to use the djang-mysql QS Hints
# https://django-mysql.readthedocs.io/en/latest/queryset_extensions.html?highlight=DJANGO_MYSQL_REWRITE_QUERIES#query-hints
# this is required to use the djang-mysql QS Hints
# https://django-mysql.readthedocs.io/en/latest/queryset_extensions.html?highlight=DJANGO_MYSQL_REWRITE_QUERIES#query-hints
DJANGO_MYSQL_REWRITE_QUERIES = True

try:
Expand Down

0 comments on commit b79c8ce

Please sign in to comment.