From a77a166b31bd1671e401c18ec8da9b1c64a6e39e Mon Sep 17 00:00:00 2001 From: benoitc Date: Tue, 21 Feb 2012 11:21:58 +0100 Subject: [PATCH] don't validate models and activate translation in run_gunicorn command. close #293. We already do that in the worker application load. Not doing it here should fix application reload and issue with threads. . --- gunicorn/management/commands/run_gunicorn.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gunicorn/management/commands/run_gunicorn.py b/gunicorn/management/commands/run_gunicorn.py index b1773238..2846265d 100644 --- a/gunicorn/management/commands/run_gunicorn.py +++ b/gunicorn/management/commands/run_gunicorn.py @@ -75,13 +75,9 @@ class Command(BaseCommand): admin_media_path = options.pop('admin_media_path', '') quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C' - print "Validating models..." - self.validate(display_num_errors=True) print "\nDjango version %s, using settings %r" % (django.get_version(), settings.SETTINGS_MODULE) print "Server is running" print "Quit the server with %s." % quit_command - # django.core.management.base forces the locale to en-us. - translation.activate(settings.LANGUAGE_CODE) DjangoApplicationCommand(options, admin_media_path).run()