"(%s) and 'can_import_settings' (%s) command options.", replace '%s' with self.leave_locale_alone and self.can_import_settings. from django.utils import translation into default namespace.
from django . utils import translation