mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-04 21:50:55 +03:00
fixed production bugs in caddyfile and middleware
This commit is contained in:
parent
f60b6d464c
commit
39e58fb077
|
@ -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 %} {
|
||||||
|
|
|
@ -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' -%}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user