From eaf4d8c0d85056c3481986fe092d5a8786bc4f26 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Thu, 4 Jun 2015 17:55:58 +0200 Subject: Fixed #24922 -- Added system check for templates setting If `'loaders'` is present in the `TEMPLATES` options together with `APP_DIRS` set to `True`, the template engine raises an exception. This conflict is now detected by the system check templates.E001. --- docs/ref/checks.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index eb6fa688a2..d536560f0a 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -491,3 +491,13 @@ If you're using MySQL, the following checks will be performed: * **mysql.E001**: MySQL does not allow unique ``CharField``\s to have a ``max_length`` > 255. + +Templates +--------- + +The following checks verify that your :setting:`TEMPLATES` setting is correctly +configured: + +* **templates.E001**: You have ``'APP_DIRS': True`` in your + :setting:`TEMPLATES` but also specify ``'loaders'`` in ``OPTIONS``. Either + remove ``APP_DIRS`` or remove the ``'loaders'`` option. -- cgit v1.3