From bdec5975efa23d29cded5b4e74537236c906e100 Mon Sep 17 00:00:00 2001 From: benoitc Date: Tue, 27 Aug 2013 20:38:49 +0200 Subject: [PATCH] remove any notion of gunicorn in main WSGIApplication if someone want to use a django application and load a specific module it is better to use the --env option. --- gunicorn/app/wsgiapp.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gunicorn/app/wsgiapp.py b/gunicorn/app/wsgiapp.py index e3131e14..16aff20a 100644 --- a/gunicorn/app/wsgiapp.py +++ b/gunicorn/app/wsgiapp.py @@ -28,11 +28,7 @@ class WSGIApplication(Application): # add the path to sys.path sys.path.insert(0, self.cfg.chdir) - try: - djangoapp.make_default_env(self.cfg) - except RuntimeError: - # ignore silently error while loading non django apps. - pass + # load the app return util.import_app(self.app_uri)