')
-EMAIL_SUBJECT_PREFIX = env('DJANGO_EMAIL_SUBJECT_PREFIX', default='[{{cookiecutter.project_name}}] ')
+EMAIL_SUBJECT_PREFIX = env('DJANGO_EMAIL_SUBJECT_PREFIX', default='[{{cookiecutter.project_name}}]')
SERVER_EMAIL = env('DJANGO_SERVER_EMAIL', default=DEFAULT_FROM_EMAIL)
# Anymail with Mailgun
-INSTALLED_APPS += ("anymail", )
+INSTALLED_APPS += ['anymail', ]
ANYMAIL = {
- "MAILGUN_API_KEY": env('DJANGO_MAILGUN_API_KEY'),
- "MAILGUN_SENDER_DOMAIN": env('MAILGUN_SENDER_DOMAIN')
+ 'MAILGUN_API_KEY': env('DJANGO_MAILGUN_API_KEY'),
+ 'MAILGUN_SENDER_DOMAIN': env('MAILGUN_SENDER_DOMAIN')
}
-EMAIL_BACKEND = "anymail.backends.mailgun.MailgunBackend"
+EMAIL_BACKEND = 'anymail.backends.mailgun.MailgunBackend'
# TEMPLATE CONFIGURATION
# ------------------------------------------------------------------------------
@@ -199,7 +195,7 @@ DATABASES['default'] = env.db('DATABASE_URL')
# CACHING
# ------------------------------------------------------------------------------
{% if cookiecutter.use_elasticbeanstalk_experimental.lower() == 'y' -%}
-REDIS_LOCATION = "redis://{}:{}/0".format(
+REDIS_LOCATION = 'redis://{}:{}/0'.format(
env('REDIS_ENDPOINT_ADDRESS'),
env('REDIS_PORT')
)
@@ -228,7 +224,7 @@ LOGGING = {
'disable_existing_loggers': True,
'root': {
'level': 'WARNING',
- 'handlers': ['sentry'],
+ 'handlers': ['sentry', ],
},
'formatters': {
'verbose': {
@@ -250,22 +246,22 @@ LOGGING = {
'loggers': {
'django.db.backends': {
'level': 'ERROR',
- 'handlers': ['console'],
+ 'handlers': ['console', ],
'propagate': False,
},
'raven': {
'level': 'DEBUG',
- 'handlers': ['console'],
+ 'handlers': ['console', ],
'propagate': False,
},
'sentry.errors': {
'level': 'DEBUG',
- 'handlers': ['console'],
+ 'handlers': ['console', ],
'propagate': False,
},
'django.security.DisallowedHost': {
'level': 'ERROR',
- 'handlers': ['console', 'sentry'],
+ 'handlers': ['console', 'sentry', ],
'propagate': False,
},
},
@@ -282,7 +278,7 @@ RAVEN_CONFIG = {
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.
-# See http://docs.djangoproject.com/en/dev/topics/logging for
+# See https://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.
LOGGING = {
'version': 1,
@@ -301,7 +297,7 @@ LOGGING = {
'handlers': {
'mail_admins': {
'level': 'ERROR',
- 'filters': ['require_debug_false'],
+ 'filters': ['require_debug_false', ],
'class': 'django.utils.log.AdminEmailHandler'
},
'console': {
@@ -312,13 +308,13 @@ LOGGING = {
},
'loggers': {
'django.request': {
- 'handlers': ['mail_admins'],
+ 'handlers': ['mail_admins', ],
'level': 'ERROR',
'propagate': True
},
'django.security.DisallowedHost': {
'level': 'ERROR',
- 'handlers': ['console', 'mail_admins'],
+ 'handlers': ['console', 'mail_admins', ],
'propagate': True
}
}
diff --git a/{{cookiecutter.project_slug}}/config/settings/test.py b/{{cookiecutter.project_slug}}/config/settings/test.py
index 6d07eb50c..4f061f715 100644
--- a/{{cookiecutter.project_slug}}/config/settings/test.py
+++ b/{{cookiecutter.project_slug}}/config/settings/test.py
@@ -5,7 +5,7 @@ Test settings
- Used to run tests fast on the continuous integration server and locally
'''
-from .common import * # noqa
+from .base import * # noqa
# DEBUG
@@ -47,16 +47,16 @@ TEST_RUNNER = 'django.test.runner.DiscoverRunner'
# PASSWORD HASHING
# ------------------------------------------------------------------------------
# Use fast password hasher so tests run faster
-PASSWORD_HASHERS = (
+PASSWORD_HASHERS = [
'django.contrib.auth.hashers.MD5PasswordHasher',
-)
+]
# TEMPLATE LOADERS
# ------------------------------------------------------------------------------
# Keep templates in memory so tests run faster
TEMPLATES[0]['OPTIONS']['loaders'] = [
- ('django.template.loaders.cached.Loader', [
+ ['django.template.loaders.cached.Loader', [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
- ]),
+ ], ],
]
diff --git a/{{cookiecutter.project_slug}}/docs/docker_ec2.rst b/{{cookiecutter.project_slug}}/docs/docker_ec2.rst
index 444172c49..1c015b90b 100644
--- a/{{cookiecutter.project_slug}}/docs/docker_ec2.rst
+++ b/{{cookiecutter.project_slug}}/docs/docker_ec2.rst
@@ -31,7 +31,7 @@ The Docker compose tool (previously known as `fig`_) makes linking these contain
...
docker-compose.yml
-Each component of your application would get its own `Dockerfile`_. The rest of this example assumes you are using the `base postgres image`_ for your database. Your database settings in `config/common.py` might then look something like:
+Each component of your application would get its own `Dockerfile`_. The rest of this example assumes you are using the `base postgres image`_ for your database. Your database settings in `config/base.py` might then look something like:
.. _Dockerfile: https://docs.docker.com/reference/builder/
.. _base postgres image: https://registry.hub.docker.com/_/postgres/
diff --git a/{{cookiecutter.project_slug}}/docs/pycharm/configuration.rst b/{{cookiecutter.project_slug}}/docs/pycharm/configuration.rst
index 005d96c8f..94ece449a 100644
--- a/{{cookiecutter.project_slug}}/docs/pycharm/configuration.rst
+++ b/{{cookiecutter.project_slug}}/docs/pycharm/configuration.rst
@@ -14,7 +14,7 @@ This repository comes with already prepared "Run/Debug Configurations" for docke
.. image:: images/2.png
-But as you can see, at the beggining there is something wrong with them. They have red X on django icon, and they cannot be used, withot configuring remote python interpteter. To do that, you have to go to *Settings > Build, Execution, Deployment* first.
+But as you can see, at the beggining there is something wrong with them. They have red X on django icon, and they cannot be used, without configuring remote python interpteter. To do that, you have to go to *Settings > Build, Execution, Deployment* first.
Next, you have to add new remote python interpreter, based on already tested deployment settings. Go to *Settings > Project > Project Interpreter*. Click on the cog icon, and click *Add Remote*.
@@ -48,7 +48,7 @@ After few seconds, all *Run/Debug Configurations* should be ready to use.
* run and debug tests
.. image:: images/f2.png
.. image:: images/f3.png
-* run and debug migrations or different django managment commands
+* run and debug migrations or different django management commands
.. image:: images/f4.png
* and many others..
diff --git a/{{cookiecutter.project_slug}}/env.example b/{{cookiecutter.project_slug}}/env.example
index 66a3570d7..138b75fd9 100644
--- a/{{cookiecutter.project_slug}}/env.example
+++ b/{{cookiecutter.project_slug}}/env.example
@@ -4,6 +4,7 @@ POSTGRES_PASSWORD=mysecretpass
POSTGRES_USER=postgresuser
# General settings
+# DJANGO_READ_DOT_ENV_FILE=True
DJANGO_ADMIN_URL=
DJANGO_SETTINGS_MODULE=config.settings.production
DJANGO_SECRET_KEY=CHANGEME!!!
diff --git a/{{cookiecutter.project_slug}}/gulpfile.js b/{{cookiecutter.project_slug}}/gulpfile.js
index 73b71339f..4f89a7719 100644
--- a/{{cookiecutter.project_slug}}/gulpfile.js
+++ b/{{cookiecutter.project_slug}}/gulpfile.js
@@ -88,17 +88,8 @@ gulp.task('browserSync', function() {
});
});
-// Default task
-gulp.task('default', function() {
- runSequence(['styles', 'scripts', 'imgCompression'], 'runServer', 'browserSync');
-});
-
-////////////////////////////////
- //Watch//
-////////////////////////////////
-
// Watch
-gulp.task('watch', ['default'], function() {
+gulp.task('watch', function() {
gulp.watch(paths.sass + '/*.scss', ['styles']);
gulp.watch(paths.js + '/*.js', ['scripts']).on("change", reload);
@@ -106,3 +97,8 @@ gulp.task('watch', ['default'], function() {
gulp.watch(paths.templates + '/**/*.html').on("change", reload);
});
+
+// Default task
+gulp.task('default', function() {
+ runSequence(['styles', 'scripts', 'imgCompression'], 'runServer', 'browserSync', 'watch');
+});
diff --git a/{{cookiecutter.project_slug}}/pytest.ini b/{{cookiecutter.project_slug}}/pytest.ini
index d19d28c54..5b4369b89 100644
--- a/{{cookiecutter.project_slug}}/pytest.ini
+++ b/{{cookiecutter.project_slug}}/pytest.ini
@@ -1,2 +1,2 @@
[pytest]
-DJANGO_SETTINGS_MODULE=config.settings.local
+DJANGO_SETTINGS_MODULE=config.settings.test
diff --git a/{{cookiecutter.project_slug}}/requirements/base.txt b/{{cookiecutter.project_slug}}/requirements/base.txt
index ed964ef2c..49e5ed18d 100644
--- a/{{cookiecutter.project_slug}}/requirements/base.txt
+++ b/{{cookiecutter.project_slug}}/requirements/base.txt
@@ -7,28 +7,28 @@ wheel==0.29.0
{%- endif %}
# Bleeding edge Django
-django==1.10.2
+django==1.10.5
# Configuration
-django-environ==0.4.0
+django-environ==0.4.1
{% if cookiecutter.use_whitenoise == 'y' -%}
-whitenoise==3.2.2
+whitenoise==3.3.0
{%- endif %}
# Forms
-django-braces==1.9.0
+django-braces==1.11.0
django-crispy-forms==1.6.1
# Models
-django-model-utils==2.6
+django-model-utils==2.6.1
# Images
-Pillow==3.4.2
+Pillow==4.0.0
# For user registration, either via email or social
# Well-built with regular release cycles!
-django-allauth==0.28.0
+django-allauth==0.30.0
{% if cookiecutter.windows == 'y' -%}
# On Windows, you must download/install psycopg2 manually
@@ -42,10 +42,10 @@ psycopg2==2.6.2
awesome-slugify==1.6.5
# Time zones support
-pytz==2016.7
+pytz==2016.10
# Redis support
-django-redis==4.5.0
+django-redis==4.7.0
redis>=2.10.5
{% if cookiecutter.use_celery == "y" %}
@@ -54,7 +54,7 @@ celery==3.1.24
{% if cookiecutter.use_compressor == "y" %}
rcssmin==1.0.6 {% if cookiecutter.windows == 'y' %}--install-option="--without-c-extensions"{% endif %}
-django-compressor==2.1
+django-compressor==2.1.1
{% endif %}
# Your custom requirements go here
diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt
index 812a01e83..7fddb24f5 100644
--- a/{{cookiecutter.project_slug}}/requirements/local.txt
+++ b/{{cookiecutter.project_slug}}/requirements/local.txt
@@ -1,17 +1,19 @@
# Local development dependencies go here
-r base.txt
-coverage==4.2
-django-coverage-plugin==1.3.1
-Sphinx==1.4.8
-django-extensions==1.7.4
-Werkzeug==0.11.11
-django-test-plus==1.0.16
-factory_boy==2.7.0
+
+coverage==4.3.4
+django-coverage-plugin==1.5.0
+
+Sphinx==1.5.2
+django-extensions==1.7.7
+Werkzeug==0.11.15
+django-test-plus==1.0.17
+factory-boy==2.8.1
django-debug-toolbar==1.6
# improved REPL
-ipdb==0.10.1
+ipdb==0.10.2
-pytest-django==3.0.0
-pytest-sugar==0.7.1
+pytest-django==3.1.2
+pytest-sugar==0.8.0
diff --git a/{{cookiecutter.project_slug}}/requirements/production.txt b/{{cookiecutter.project_slug}}/requirements/production.txt
index ae788f2f4..fbc3a62d6 100644
--- a/{{cookiecutter.project_slug}}/requirements/production.txt
+++ b/{{cookiecutter.project_slug}}/requirements/production.txt
@@ -11,29 +11,29 @@ psycopg2==2.6.2
# WSGI Handler
# ------------------------------------------------
-gevent==1.1.2
+gevent==1.2.1
gunicorn==19.6.0
# Static and Media Storage
# ------------------------------------------------
-boto==2.43.0
+boto==2.46.1
django-storages-redux==1.3.2
{% if cookiecutter.use_whitenoise != 'y' -%}
-Collectfast==0.2.3
+Collectfast==0.5.2
{%- endif %}
# Email backends for Mailgun, Postmark, SendGrid and more
# -------------------------------------------------------
-django-anymail==0.5
+django-anymail==0.8
{% if cookiecutter.use_sentry_for_error_reporting == "y" -%}
# Raven is the Sentry client
# --------------------------
-raven==5.31.0
+raven==6.0.0
{%- endif %}
{% if cookiecutter.use_opbeat == "y" -%}
# Opbeat agent for performance monitoring
# -----------------------------------------
-opbeat==3.4.0
+opbeat==3.5.2
{%- endif %}
diff --git a/{{cookiecutter.project_slug}}/requirements/test.txt b/{{cookiecutter.project_slug}}/requirements/test.txt
index 5578aaca8..afb97ded8 100644
--- a/{{cookiecutter.project_slug}}/requirements/test.txt
+++ b/{{cookiecutter.project_slug}}/requirements/test.txt
@@ -7,11 +7,11 @@
psycopg2==2.6.2
{%- endif %}
-coverage==4.2
-flake8==3.0.4 # pyup: != 2.6.0
-django-test-plus==1.0.16
-factory_boy==2.7.0
+coverage==4.3.4
+flake8==3.3.0 # pyup: != 2.6.0
+django-test-plus==1.0.17
+factory-boy==2.8.1
# pytest
-pytest-django==3.0.0
-pytest-sugar==0.7.1
+pytest-django==3.1.2
+pytest-sugar==0.8.0
diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html
index 0d7a787f8..1687ef311 100644
--- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html
+++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/404.html
@@ -1,9 +1,9 @@
{% raw %}{% extends "base.html" %}
-{% block title %}Page Not found{% endblock %}
+{% block title %}Page not found{% endblock %}
{% block content %}
-Page Not found
+Page not found
This is not the page you were looking for.
{% endblock content %}{% endraw %}