diff options
| author | Ling-Xiao Yang <ling-xiao.yang@savoirfairelinux.com> | 2017-01-02 17:35:43 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-01 09:48:24 -0500 |
| commit | 0ec4dc91e0e7befdd06aa0613b5d0fbe3c785ee7 (patch) | |
| tree | a90c017fa9555b3cbcb7e05459a8ee6dbe66a6cd /docs | |
| parent | ac5f886c5610a6bca26dab10170b445d1e9df450 (diff) | |
Fixed #27661 -- Moved FileSystemFinder's ImproperlyConfigured exceptions to system checks.
Thanks Simon Charette, Mariusz Felisiak, Tim Graham, and Adam Johnson
for review.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/checks.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 518ed507af..35c0bd6987 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -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. |
