Flake8 fix

This commit is contained in:
Daniel Roy Greenfeld 2017-04-13 11:27:54 -07:00
parent 6453fea417
commit a3b0feec12

View File

@ -15,12 +15,13 @@ framework.
"""
import os, sys
from django.core.wsgi import get_wsgi_application
# This allows easy placement of apps within the interior
# {{ cookiecutter.project_slug }} directory.
app_path = os.path.dirname(os.path.abspath(__file__)).replace('/config', '')
sys.path.append(os.path.join(app_path, '{{ cookiecutter.project_slug }}'))
from django.core.wsgi import get_wsgi_application
{% if cookiecutter.use_sentry_for_error_reporting == 'y' -%}
if os.environ.get('DJANGO_SETTINGS_MODULE') == 'config.settings.production':
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry