mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
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:
parent
98f57f3daf
commit
a77a166b31
@ -75,13 +75,9 @@ class Command(BaseCommand):
|
|||||||
admin_media_path = options.pop('admin_media_path', '')
|
admin_media_path = options.pop('admin_media_path', '')
|
||||||
quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C'
|
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(),
|
print "\nDjango version %s, using settings %r" % (django.get_version(),
|
||||||
settings.SETTINGS_MODULE)
|
settings.SETTINGS_MODULE)
|
||||||
print "Server is running"
|
print "Server is running"
|
||||||
print "Quit the server with %s." % quit_command
|
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()
|
DjangoApplicationCommand(options, admin_media_path).run()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user