From 625b858df0da6f7c6ea4ef1976ab3ba38e53ffa7 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Thu, 11 Nov 2010 11:32:21 -0500 Subject: [PATCH] Fix DjangoApplicationCommand constructor. --- gunicorn/app/djangoapp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gunicorn/app/djangoapp.py b/gunicorn/app/djangoapp.py index 071c6060..eccf9cd8 100644 --- a/gunicorn/app/djangoapp.py +++ b/gunicorn/app/djangoapp.py @@ -3,6 +3,7 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. +import logging import os import sys import traceback @@ -63,6 +64,9 @@ class DjangoApplication(Application): class DjangoApplicationCommand(Application): def __init__(self, options, admin_media_path): + self.log = logging.getLogger(__name__) + self.usage = None + self.cfg = None self.config_file = options.get("config") or "" self.options = options self.admin_media_path = admin_media_path