fixed production bugs in caddyfile and middleware

This commit is contained in:
Chris Pappalardo 2018-09-14 09:04:18 -07:00
parent f60b6d464c
commit 39e58fb077
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
www.{% raw %}{$DOMAIN_NAME}{% endraw %} { www.{% raw %}{$DOMAIN_NAME}{% endraw %} {
redir https://{{cookiecutter.domain_name}} redir https://{% raw %}{$DOMAIN_NAME}{% endraw %} {
} }
{% raw %}{$DOMAIN_NAME}{% endraw %} { {% raw %}{$DOMAIN_NAME}{% endraw %} {

View File

@ -164,7 +164,7 @@ INSTALLED_APPS += ['gunicorn'] # noqa F405
# WhiteNoise # WhiteNoise
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# http://whitenoise.evans.io/en/latest/django.html#enable-whitenoise # http://whitenoise.evans.io/en/latest/django.html#enable-whitenoise
MIDDLEWARE = ['whitenoise.middleware.WhiteNoiseMiddleware'] + MIDDLEWARE # noqa F405 MIDDLEWARE.insert(1, 'whitenoise.middleware.WhiteNoiseMiddleware') # noqa F405
{% endif %} {% endif %}
{%- if cookiecutter.use_compressor == 'y' -%} {%- if cookiecutter.use_compressor == 'y' -%}