From a3b0feec120dd02c31f92d10fbf77e1f63976da7 Mon Sep 17 00:00:00 2001 From: Daniel Roy Greenfeld Date: Thu, 13 Apr 2017 11:27:54 -0700 Subject: [PATCH] Flake8 fix --- {{cookiecutter.project_slug}}/config/wsgi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/config/wsgi.py b/{{cookiecutter.project_slug}}/config/wsgi.py index 05d56ab2..741b0798 100644 --- a/{{cookiecutter.project_slug}}/config/wsgi.py +++ b/{{cookiecutter.project_slug}}/config/wsgi.py @@ -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