From 47f89d9df1b4cf44fee0017a84a6ad44b5e74870 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Date: Sat, 25 Apr 2015 18:35:33 +0530 Subject: [PATCH] Fixed local settings, SECRET_KEY setter and add TEST_RUNNER explicitly Thanks @ad-m for reporting closes #223 --- .../{{cookiecutter.repo_name}}/config/local.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/local.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/local.py index c0d4345d..c1d0c709 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/local.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/local.py @@ -18,7 +18,7 @@ TEMPLATE_DEBUG = DEBUG # ------------------------------------------------------------------------------ # See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key # Note: This key only used for development and testing. -SECRET_KEY = env("DJANGO_SECRET_KEY", 'CHANGEME!!!') +SECRET_KEY = env("DJANGO_SECRET_KEY", default='CHANGEME!!!') # Mail settings # ------------------------------------------------------------------------------ @@ -51,4 +51,8 @@ DEBUG_TOOLBAR_CONFIG = { 'SHOW_TEMPLATE_CONTEXT': True, } +# TESTING +# ------------------------------------------------------------------------------ +TEST_RUNNER = 'django.test.runner.DiscoverRunner' + # Your local stuff: Below this line define 3rd party library settings