From 0ec4dc91e0e7befdd06aa0613b5d0fbe3c785ee7 Mon Sep 17 00:00:00 2001 From: Ling-Xiao Yang Date: Mon, 2 Jan 2017 17:35:43 -0500 Subject: Fixed #27661 -- Moved FileSystemFinder's ImproperlyConfigured exceptions to system checks. Thanks Simon Charette, Mariusz Felisiak, Tim Graham, and Adam Johnson for review. --- docs/ref/checks.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') 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 ````. * **sites.E002**: ``CurrentSiteManager`` cannot use ```` 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. -- cgit v1.3