From f4098aa20de360baf1f7a401432de63d8bb6e115 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Tue, 16 Feb 2010 16:41:52 +0100 Subject: [PATCH] some people put their settings in a module like settings/__init__.py . this change allows it. --- gunicorn/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn/main.py b/gunicorn/main.py index 879b3edf..6b6f8852 100644 --- a/gunicorn/main.py +++ b/gunicorn/main.py @@ -199,13 +199,13 @@ def run_django(): if args: settings_path = os.path.abspath(os.path.normpath(args[0])) - if not os.path.isfile(settings_path): + if not os.path.exists(settings_path): settings_notfound(settings_path) else: project_path = os.path.dirname(settings_path) else: settings_path = os.path.join(project_path, "settings.py") - if not os.path.isfile(settings_path): + if not os.path.exists(settings_path): settings_notfound(settings_path) project_name = os.path.split(project_path)[-1]