diff --git a/django_project/core/settings/base.py b/django_project/core/settings/base.py index 42ee98d3..6eaeaae4 100644 --- a/django_project/core/settings/base.py +++ b/django_project/core/settings/base.py @@ -144,8 +144,4 @@ LOGIN_URL = '/account/login/' LOGIN_REDIRECT_URL = '/' -from .utils import ensure_secret_key_file # noga - -ensure_secret_key_file() - from .secret import SECRET_KEY # noqa diff --git a/django_project/core/settings/dev.py b/django_project/core/settings/dev.py index 92ca362f..bc4fb77c 100644 --- a/django_project/core/settings/dev.py +++ b/django_project/core/settings/dev.py @@ -4,6 +4,11 @@ .. note:: Settings for development mode. """ + +from .utils import ensure_secret_key_file # noga + +ensure_secret_key_file() + from .project import * # noqa # Set debug to True for development