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
|
# add the path to sys.path
|
||||||
sys.path.insert(0, self.cfg.chdir)
|
sys.path.insert(0, self.cfg.chdir)
|
||||||
|
|
||||||
try:
|
# load the app
|
||||||
djangoapp.make_default_env(self.cfg)
|
|
||||||
except RuntimeError:
|
|
||||||
# ignore silently error while loading non django apps.
|
|
||||||
pass
|
|
||||||
return util.import_app(self.app_uri)
|
return util.import_app(self.app_uri)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user