mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Update settings error message
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
This commit is contained in:
parent
b7bd2182dc
commit
78a85f814b
@ -169,7 +169,7 @@ class Settings:
|
|||||||
# If settings module cannot be imported, treat it as a configuration error.
|
# If settings module cannot be imported, treat it as a configuration error.
|
||||||
if exc.name == self.SETTINGS_MODULE:
|
if exc.name == self.SETTINGS_MODULE:
|
||||||
raise ImproperlyConfigured(
|
raise ImproperlyConfigured(
|
||||||
f"Settings module {self.SETTINGS_MODULE} could not be imported"
|
f"Settings module '{self.SETTINGS_MODULE}' could not be imported."
|
||||||
) from exc
|
) from exc
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user