Skip to content

Commit

Permalink
Fix settings import
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlin Buczek committed Jun 13, 2019
1 parent b78d90e commit 0cc9344
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.utils.translation import gettext_lazy as _


ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # (mpicms/config/settings/base.py - 3 = mpicms/)
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
APPS_DIR = os.path.join(ROOT_DIR, 'mpicms')

# GENERAL
Expand Down Expand Up @@ -155,7 +155,7 @@
os.path.join(APPS_DIR, 'templates'),
],
'OPTIONS': {
'debug': DEBUG,
'debug': False,
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
Expand Down
2 changes: 1 addition & 1 deletion config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@
}

try:
from local_settings import * # noqa
from .local_settings import * # noqa
except ImportError:
pass
2 changes: 1 addition & 1 deletion config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,6 @@
}

try:
from local_settings import * # noqa
from .local_settings import * # noqa
except ImportError:
pass

0 comments on commit 0cc9344

Please sign in to comment.