Perform (minimal) syntax checks for Django templates.
Project description
django-template-check
This package makes it possible to easily check for basic syntax errors in all loaded Django templates. This can be useful as part of a continuous integration step in a build process, so as not to discover these problems at runtime.
Currently, checking is very minimal, simply relying on the exceptions raised by Django’s compile and render template pipeline. Furthermore, only the default Django template backend is tested and supported.
Requirements
This package requires Django version 1.8 or greater, and has been tested with 1.10.
Installation
Simply get the package from pip:
pip install django-embed-template
Then make sure to add django_embed_template to your INSTALLED_APPS in your settings.py.
Usage
After installing this package, simply use it by calling the management command:
python manage.py templatecheck
License
All included code is available under the CC0 1.0 Universal Public Domain Dedication.
django-template-check Changelog
0.1.1 (2016-08-11)
Fix packaging to actually include code.
0.1.0 (2016-08-11)
Initial working prototype
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-template-check-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7bbd4b7476dcb3c414cd8dff2c1f4ade4edcaacfb546f250bca720881526f8a |
|
MD5 | 7a9a42a15ad94f2c31479a0f6c811cc1 |
|
BLAKE2b-256 | 848bb5800a051a9fc526a5f71870060040dc6d38a7e2958620d32a4fc0685721 |
Hashes for django_template_check-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0108ee0ac60eeee03b5bb0a7583e0f9544a5a1f28eb072b9ff998deeef31b97 |
|
MD5 | e8b796a1d72b1d78fdef242a3fdb406c |
|
BLAKE2b-256 | 9964dd2e3156d532f05269d17b5bbad0b337899c436b5d815896384ca11cd8d2 |