diff --git a/{{cookiecutter.git_project_name}}/.env/.testing b/{{cookiecutter.git_project_name}}/.env/.testing index ee55857f..761c97b6 100644 --- a/{{cookiecutter.git_project_name}}/.env/.testing +++ b/{{cookiecutter.git_project_name}}/.env/.testing @@ -4,7 +4,7 @@ DJANGO_LOGGING_LEVEL="DEBUG" DJANGO_LOGGING_MAIL_ADMINS="ERROR" DJANGO_MANAGEPY_MIGRATE=on DJANGO_SECRET_KEY="!!!INSECURE_TESTING_SECRET!!!" -DJANGO_SETTINGS_MODULE=config.settings.testing +DJANGO_SETTINGS_MODULE=config.settings.test DB_ENGINE="" DB_NAME="" DB_USER="" diff --git a/{{cookiecutter.git_project_name}}/config/settings/test.py b/{{cookiecutter.git_project_name}}/config/settings/test.py index e6e44b7a..b7dca001 100644 --- a/{{cookiecutter.git_project_name}}/config/settings/test.py +++ b/{{cookiecutter.git_project_name}}/config/settings/test.py @@ -12,6 +12,8 @@ ) environ.Env.read_env(os.path.join(BASE_DIR, ".env/.testing")) # noqa: F405 +SETTINGS_MODULE = env("DJANGO_SETTINGS_MODULE", default="config.settings.test") + SECRET_KEY = env("DJANGO_SECRET_KEY") DEBUG = env("DJANGO_DEBUG", default=False)