mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #551 from gauravkumar37/master
Fix to read the settings module specified while running via gunicorn command
This commit is contained in:
commit
a8ecbd5764
@ -8,6 +8,7 @@ import sys
|
||||
|
||||
from gunicorn import util
|
||||
from gunicorn.app.base import Application
|
||||
from gunicorn.app import djangoapp
|
||||
|
||||
|
||||
class WSGIApplication(Application):
|
||||
@ -24,6 +25,7 @@ class WSGIApplication(Application):
|
||||
sys.path.insert(0, cwd)
|
||||
|
||||
def load(self):
|
||||
djangoapp.make_default_env(self.cfg)
|
||||
return util.import_app(self.app_uri)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user