Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wooyek/dinja2

Jinja2 template backend for Django
https://github.com/wooyek/dinja2

django django-templates jinja2

Last synced: about 1 month ago
JSON representation

Jinja2 template backend for Django

Awesome Lists containing this project

README

        

=============================
Dinja2
=============================

.. image:: https://badge.fury.io/py/dinja2.svg
:target: https://badge.fury.io/py/dinja2

.. image:: https://travis-ci.org/wooyek/dinja2.svg?branch=master
:target: https://travis-ci.org/wooyek/dinja2

.. image:: https://codecov.io/gh/wooyek/dinja2/branch/master/graph/badge.svg
:target: https://codecov.io/gh/wooyek/dinja2

Jinja2 template backend for Django

Documentation
-------------

The full documentation is at https://dinja2.readthedocs.io.

Quickstart
----------

Install Dinja2::

pip install dinja2

Add it to your `INSTALLED_APPS`:

.. code-block:: python

INSTALLED_APPS = (
...
'dinja2.apps.Dinja2Config',
...
)

Add Dinja2's URL patterns:

.. code-block:: python

from dinja2 import urls as dinja2_urls

urlpatterns = [
...
url(r'^', include(dinja2_urls)),
...
]

Features
--------

* TODO

Running Tests
-------------

Does the code actually work?

::

source /bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits
-------

Tools used in rendering this package:

* Cookiecutter_
* `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage