include copy of django_extension, dont install django from git

This commit is contained in:
j 2014-11-20 16:34:55 +00:00
commit 3f7215035a
200 changed files with 14119 additions and 4 deletions

View file

@ -0,0 +1,35 @@
validate_templates
==================
:synopsis: Checks templates on syntax or compile errors.
Options
-------
verbosity
~~~~~~~~~
A higher verbosity level will print out all the files that are processed not just the onces that contain errors.
break
~~~~~
Do not continue scanning other templates after the first failure.
includes
~~~~~~~~
Use -i (can be used multiple times) to add directories to the TEMPLATE_DIRS.
Settings
--------
VALIDATE_TEMPLATES_EXTRA_TEMPLATE_DIRS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can use `VALIDATE_TEMPLATES_EXTRA_TEMPLATE_DIRS` to include a number of template dirs per default directly from the settings file.
This can be usefull for situations where TEMPLATE_DIRS is dynamically generated or switched in middleware or you have other template
dirs for external applications like celery you want to check as well.
Usage Example
-------------
./manage.py validate_templates