diff --git a/THANKS b/THANKS index c808b517..3c7aa8af 100644 --- a/THANKS +++ b/THANKS @@ -16,3 +16,4 @@ thomasst Jonas Borgström PA Parent Travis Cline +Adrien Lemaire diff --git a/gunicorn/app/djangoapp.py b/gunicorn/app/djangoapp.py index f32b3d99..cbc73384 100644 --- a/gunicorn/app/djangoapp.py +++ b/gunicorn/app/djangoapp.py @@ -68,9 +68,9 @@ class DjangoApplicationCommand(Application): "__package__": None } try: - execfile(config_file, cfg, cfg) + execfile(self.config_file, cfg, cfg) 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() sys.exit(1)