mirror of
https://github.com/django/django.git
synced 2025-04-12 03:22:21 +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 exc.name == self.SETTINGS_MODULE:
|
||||
raise ImproperlyConfigured(
|
||||
f"Settings module {self.SETTINGS_MODULE} could not be imported"
|
||||
f"Settings module '{self.SETTINGS_MODULE}' could not be imported."
|
||||
) from exc
|
||||
raise
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user