mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fixes loading config files with Django apps.
Thanks to Adrien Lemaire for noticing the issue. Fixes #98
This commit is contained in:
parent
ac9f38de53
commit
0f3f2e6ab7
1
THANKS
1
THANKS
@ -16,3 +16,4 @@ thomasst <http://github.com/thomasst>
|
|||||||
Jonas Borgström <http://github.com/jborg>
|
Jonas Borgström <http://github.com/jborg>
|
||||||
PA Parent <paparent@paparent.me>
|
PA Parent <paparent@paparent.me>
|
||||||
Travis Cline <travis.cline@gmail.com>
|
Travis Cline <travis.cline@gmail.com>
|
||||||
|
Adrien Lemaire <lemaire.adrien@gmail.com>
|
||||||
|
|||||||
@ -68,9 +68,9 @@ class DjangoApplicationCommand(Application):
|
|||||||
"__package__": None
|
"__package__": None
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
execfile(config_file, cfg, cfg)
|
execfile(self.config_file, cfg, cfg)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print "Failed to read config file: %s" % config_file
|
print "Failed to read config file: %s" % self.config_file
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user