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.
.
This commit is contained in:
benoitc 2012-02-21 11:21:58 +01:00
parent 98f57f3daf
commit a77a166b31

View File

@ -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()