from django.conf import settings from django.core.management.commands.shell import Command as ShellCommand from django.utils import translation class Command(ShellCommand): def run_shell(self): with translation.override(settings.LANGUAGE_CODE): super(Command,self).run_shell()