mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 12:17:37 +03:00
Merge pull request #333 from yunti/Fix-for-Raven-II
Removed redundant else for Fix for Raven
This commit is contained in:
commit
08a58ab555
|
@ -22,8 +22,6 @@ from whitenoise.django import DjangoWhiteNoise
|
||||||
{% if cookiecutter.use_sentry == "y" -%}
|
{% if cookiecutter.use_sentry == "y" -%}
|
||||||
if os.environ.get("DJANGO_SETTINGS_MODULE") == "config.settings.production":
|
if os.environ.get("DJANGO_SETTINGS_MODULE") == "config.settings.production":
|
||||||
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
|
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
|
||||||
else:
|
|
||||||
pass
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
|
# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
|
||||||
|
@ -45,8 +43,6 @@ application = DjangoWhiteNoise(application)
|
||||||
{% if cookiecutter.use_sentry == "y" -%}
|
{% if cookiecutter.use_sentry == "y" -%}
|
||||||
if os.environ.get("DJANGO_SETTINGS_MODULE") == "config.settings.production":
|
if os.environ.get("DJANGO_SETTINGS_MODULE") == "config.settings.production":
|
||||||
application = Sentry(application)
|
application = Sentry(application)
|
||||||
else:
|
|
||||||
pass
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
# Apply WSGI middleware here.
|
# Apply WSGI middleware here.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user