diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/settings.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/settings.txt b/docs/settings.txt index 79de2ad22f..3157a91dc3 100644 --- a/docs/settings.txt +++ b/docs/settings.txt @@ -1166,12 +1166,12 @@ If you're not setting the ``DJANGO_SETTINGS_MODULE`` environment variable, you settings. If you don't set ``DJANGO_SETTINGS_MODULE`` and don't call ``configure()``, -Django will raise an ``EnvironmentError`` exception the first time a setting +Django will raise an ``ImportError`` exception the first time a setting is accessed. If you set ``DJANGO_SETTINGS_MODULE``, access settings values somehow, *then* -call ``configure()``, Django will raise an ``EnvironmentError`` saying settings -have already been configured. +call ``configure()``, Django will raise a ``RuntimeError`` indicating +that settings have already been configured. Also, it's an error to call ``configure()`` more than once, or to call ``configure()`` after any setting has been accessed. |
