mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +03:00
Eliminate django-secure from requirements and settings files
This commit is contained in:
parent
6b9c6cbe64
commit
0efd49203b
|
@ -53,7 +53,7 @@ INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
|
|||
# MIDDLEWARE CONFIGURATION
|
||||
# ------------------------------------------------------------------------------
|
||||
MIDDLEWARE_CLASSES = (
|
||||
# Make sure djangosecure.middleware.SecurityMiddleware is listed first
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
|
|
|
@ -41,9 +41,7 @@ INSTALLED_APPS += ('djangosecure', )
|
|||
# See https://docs.getsentry.com/hosted/clients/python/integrations/django/
|
||||
INSTALLED_APPS += ('raven.contrib.django.raven_compat', )
|
||||
{%- endif %}
|
||||
SECURITY_MIDDLEWARE = (
|
||||
'djangosecure.middleware.SecurityMiddleware',
|
||||
)
|
||||
|
||||
{% if cookiecutter.use_whitenoise == 'y' -%}
|
||||
# Use Whitenoise to serve static files
|
||||
# See: https://whitenoise.readthedocs.io/
|
||||
|
@ -59,8 +57,6 @@ RAVEN_MIDDLEWARE = (
|
|||
MIDDLEWARE_CLASSES = RAVEN_MIDDLEWARE + MIDDLEWARE_CLASSES
|
||||
{%- endif %}
|
||||
|
||||
# Make sure djangosecure.middleware.SecurityMiddleware is listed first
|
||||
MIDDLEWARE_CLASSES = SECURITY_MIDDLEWARE + MIDDLEWARE_CLASSES
|
||||
|
||||
{% if cookiecutter.use_opbeat == 'y' -%}
|
||||
# opbeat integration
|
||||
|
|
|
@ -11,7 +11,6 @@ django==1.9.6
|
|||
|
||||
# Configuration
|
||||
django-environ==0.4.0
|
||||
django-secure==1.0.1
|
||||
{% if cookiecutter.use_whitenoise == 'y' -%}
|
||||
whitenoise==3.0
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user