mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
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.
This commit is contained in:
parent
1eceed0ad5
commit
bdec5975ef
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user