From bfc4703626ce0d5533b0cd964a22d383e80ed3a6 Mon Sep 17 00:00:00 2001 From: Audrey Roy Greenfeld Date: Wed, 20 Apr 2016 12:07:19 -0700 Subject: [PATCH 1/4] Update dev requirements --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 50e6bd23..58618431 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -cookiecutter==1.3.0 +cookiecutter==1.4.0 flake8==2.5.4 sh==1.11 binaryornot==0.4.0 @@ -8,3 +8,4 @@ pytest==2.9.0 pep8==1.7.0 pyflakes==1.1.0 tox==2.3.1 +pytest-cookies==0.2.0 From dcf9509cbb58b6a67b0d04c7e53ce0b43916d023 Mon Sep 17 00:00:00 2001 From: Audrey Roy Greenfeld Date: Wed, 20 Apr 2016 12:47:44 -0700 Subject: [PATCH 2/4] Transform project name to lowercase for slug. --- cookiecutter.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookiecutter.json b/cookiecutter.json index d0fb27e0..258a578b 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -1,6 +1,6 @@ { "project_name": "project_name", - "repo_name": "{{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_') }}", + "repo_name": "{{ cookiecutter.project_name.lower()|replace(' ', '_')|replace('-', '_') }}", "author_name": "Your Name", "email": "Your email", "description": "A short description of the project.", From f4cf5df53e57acb338ee9c9aca24d58709dbcfb7 Mon Sep 17 00:00:00 2001 From: Audrey Roy Greenfeld Date: Wed, 20 Apr 2016 12:53:31 -0700 Subject: [PATCH 3/4] Default to today's date in cookiecutter.json. --- cookiecutter.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookiecutter.json b/cookiecutter.json index 258a578b..92c92ba0 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -7,7 +7,7 @@ "domain_name": "example.com", "version": "0.1.0", "timezone": "UTC", - "now": "2016/03/05", + "now": "{% now 'local' %}", "year": "{{ cookiecutter.now[:4] }}", "use_whitenoise": "y", "use_celery": "n", From f453e062e189d9a339b9b5b08e147569fa5b594f Mon Sep 17 00:00:00 2001 From: Michael O'Connor Date: Thu, 21 Apr 2016 09:06:57 -0500 Subject: [PATCH 4/4] Remove duplicate clickjacking protection --- {{cookiecutter.repo_name}}/config/settings/production.py | 1 - 1 file changed, 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/config/settings/production.py b/{{cookiecutter.repo_name}}/config/settings/production.py index 8cd6f009..f038ac35 100644 --- a/{{cookiecutter.repo_name}}/config/settings/production.py +++ b/{{cookiecutter.repo_name}}/config/settings/production.py @@ -72,7 +72,6 @@ MIDDLEWARE_CLASSES = ( SECURE_HSTS_SECONDS = 60 SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool( 'DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS', default=True) -SECURE_FRAME_DENY = env.bool('DJANGO_SECURE_FRAME_DENY', default=True) SECURE_CONTENT_TYPE_NOSNIFF = env.bool( 'DJANGO_SECURE_CONTENT_TYPE_NOSNIFF', default=True) SECURE_BROWSER_XSS_FILTER = True