mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27661 -- Moved FileSystemFinder's ImproperlyConfigured exceptions to system checks.
Thanks Simon Charette, Mariusz Felisiak, Tim Graham, and Adam Johnson for review.
This commit is contained in:
committed by
Tim Graham
parent
ac5f886c56
commit
0ec4dc91e0
@@ -83,6 +83,7 @@ Django's system checks are organized using the following tags:
|
||||
* ``models``: Checks of model, field, and manager definitions.
|
||||
* ``security``: Checks security related configuration.
|
||||
* ``signals``: Checks on signal declarations and handler registrations.
|
||||
* ``staticfiles``: Checks :mod:`django.contrib.staticfiles` configuration.
|
||||
* ``templates``: Checks template related configuration.
|
||||
* ``urls``: Checks URL configuration.
|
||||
|
||||
@@ -675,3 +676,14 @@ The following checks are performed on any model using a
|
||||
``<field name>``.
|
||||
* **sites.E002**: ``CurrentSiteManager`` cannot use ``<field>`` as it is not a
|
||||
foreign key or a many-to-many field.
|
||||
|
||||
``staticfiles``
|
||||
---------------
|
||||
|
||||
The following checks verify that :mod:`django.contrib.staticfiles` is correctly
|
||||
configured:
|
||||
|
||||
* **staticfiles.E001**: The :setting:`STATICFILES_DIRS` setting is not a tuple
|
||||
or list.
|
||||
* **staticfiles.E002**: The :setting:`STATICFILES_DIRS` setting should not
|
||||
contain the :setting:`STATIC_ROOT` setting.
|
||||
|
||||
Reference in New Issue
Block a user