mirror of
https://github.com/django/django.git
synced 2025-01-08 17:37:20 +00:00
style another settings exc notice
This commit is contained in:
parent
f810be610b
commit
4482c090f1
@ -272,7 +272,7 @@ class ManagementUtility:
|
|||||||
else:
|
else:
|
||||||
klass = load_command_class(app_name, subcommand)
|
klass = load_command_class(app_name, subcommand)
|
||||||
if self.settings_exception and klass.requires_settings:
|
if self.settings_exception and klass.requires_settings:
|
||||||
sys.stderr.write(str(self.settings_exception) + "\n")
|
sys.stderr.write(self.style.NOTICE(str(self.settings_exception) + "\n"))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
return klass
|
return klass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user