Django-dbtemplates

Latest version: v4.0

Safety actively analyzes 629765 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

1.2.1

-------------------

* Fixed a wrong use of the non-lazy localization tools.

* Fixed bugs in the documentation.

* Make use of django-appconf and versiontools.

1.2

-----------------

* Refactored the template loader to be even more cache effective.

* Added ``check_template_syntax`` management command and admin action
to make sure the saved templates are valid Django templates.

1.1.1

-------------------

* Fixed bug in cache loading (again).

* Fixed bugs in the documentation.

.. note::

Since ``dbtemplates`` removed support for Django lower than 1.2 you
have to use the template loader class in the ``TEMPLATE_LOADERS``
(``'dbtemplates.loader.Loader'``) and **not** the previosly included
function that ended with ``load_template_source``.

1.1

-----------------

* **BACKWARDS-INCOMPATIBLE** Requires Django 1.2 or higher.
For previous Django versions use an older versions of ``dbtemplates``,
e.g.::

$ pip install "django-dbtemplates<1.1"

* Added South migrations.

.. note::

If you are using South in your Django project, you can easily enable
dbtemplates' migrations, *faking* the first migration by using the
``--fake`` option of South's ``migrate`` management command::

$ manage.py migrate --fake 0001 dbtemplates

Then run the rest of the migrations::

$ manage.py migrate dbtemplates

* Removed uniqueness on the ``name`` field of the ``Template`` model. This is
needed because there isn't a ``unique_together`` for M2M fields in Django
such as the ``sites`` field in the ``Template`` model.

* Made the ``sites`` field optional to support a way to apply a template to
all sites.

* Added ``--delete`` option to ``sync_templates`` managment command to delete
the file or database entry after syncing (depending on used ``--overwrite``
mode).

* Updated translations.

* Fixed issue with incorrectly splitting paths in ``sync_templates``.

* Extended tests.

* Fixed issue with cache settings handling.

1.0.1

-------------------

* Minor bugfixes with regard to the new cache handling.

1.0

-----------------

.. warning::
This is the first stable release of django-dbtemplates which comes with a
series of backwards incompatible changes.

* Removed own caching mechanism in favor of Django based caching mechanism.
The ``DBTEMPLATES_CACHE_BACKEND`` is expected to be a valid cache backend
URI, just like Django's own ``CACHE_BACKEND`` setting. In Django >= 1.3
an ``'dbtemplates'`` entry in the ``CACHES`` setting is also considered
valid.

* Added tox configuration to test ``dbtemplates`` on Python 2.5, 2.6 and 2.7
with Django 1.1.X, 1.2.X and 1.3.X.

* Added Transifex configuration.

* Use ``STATIC_URL`` setting instead of ``MEDIA_URL`` for the media prefix.
Also moved files from media/* to static/* to follow convention introduced
in Django 1.3.

* Use ReadTheDocs for documentation hosting.

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.