2011-04-11 17:21:51 +00:00
|
|
|
Settings
|
|
|
|
|
========
|
|
|
|
|
|
|
|
|
|
``DBTEMPLATES_ADD_DEFAULT_SITE``
|
|
|
|
|
--------------------------------
|
|
|
|
|
|
2012-01-08 22:59:34 +00:00
|
|
|
``dbtemplates`` adds the current site (``settings.SITE_ID``) to the database
|
|
|
|
|
template when it is created by default. You can disable this feature by
|
2011-04-11 17:21:51 +00:00
|
|
|
setting ``DBTEMPLATES_ADD_DEFAULT_SITE`` to ``False``.
|
|
|
|
|
|
|
|
|
|
``DBTEMPLATES_AUTO_POPULATE_CONTENT``
|
|
|
|
|
-------------------------------------
|
|
|
|
|
|
|
|
|
|
``dbtemplates`` auto-populates the content of a newly created template with
|
|
|
|
|
the content of a template with the same name the other template loader.
|
|
|
|
|
To disable this feature set ``DBTEMPLATES_AUTO_POPULATE_CONTENT`` to
|
|
|
|
|
``False``.
|
|
|
|
|
|
|
|
|
|
``DBTEMPLATES_CACHE_BACKEND``
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
The dotted Python path to the cache backend class. See
|
|
|
|
|
:ref:`Caching <caching>` for details.
|
|
|
|
|
|
|
|
|
|
``DBTEMPLATES_USE_CODEMIRROR``
|
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
|
|
A boolean, if enabled triggers the use of the CodeMirror based editor.
|
|
|
|
|
Set to ``False`` by default.
|
|
|
|
|
|
2012-05-07 21:48:07 +00:00
|
|
|
``DBTEMPLATES_USE_TINYMCE``
|
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
|
|
.. versionadded:: 1.3
|
|
|
|
|
|
|
|
|
|
A boolean, if enabled triggers the use of the TinyMCE based editor.
|
|
|
|
|
Set to ``False`` by default.
|
|
|
|
|
|
2011-04-11 17:21:51 +00:00
|
|
|
``DBTEMPLATES_USE_REVERSION``
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
A boolean, if enabled triggers the use of ``django-reversion``.
|
|
|
|
|
|
2019-06-19 13:41:00 +00:00
|
|
|
``DBTEMPLATES_USE_REVERSION_COMPARE``
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
A boolean, if enabled triggers the use of ``django-reversion-compare``.
|
|
|
|
|
|
2011-04-11 17:21:51 +00:00
|
|
|
``DBTEMPLATES_MEDIA_PREFIX``
|
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
|
|
The URL prefix for ``dbtemplates``' media -- CSS and JavaScript used by
|
|
|
|
|
the CodeMirror based editor. Make sure to use a trailing
|
|
|
|
|
slash, and to have this be different from the ``STATIC_URL`` setting
|
|
|
|
|
(since the same URL cannot be mapped onto two different sets of
|
|
|
|
|
files).
|
|
|
|
|
|
|
|
|
|
.. warning::
|
2011-04-11 20:38:17 +00:00
|
|
|
Starting in version 1.0, ``dbtemplates`` uses the ``STATIC_URL`` setting,
|
2011-04-11 17:21:51 +00:00
|
|
|
originally introduced by the django-staticfiles_ app. The app has since
|
|
|
|
|
been added to Django itself and isn't needed if you use Django 1.3 or
|
|
|
|
|
higher. Please refer to the `contrib docs`_ in that case.
|
|
|
|
|
|
|
|
|
|
.. _django-staticfiles: http://pypi.python.org/pypi/django-staticfiles
|
2011-04-11 20:38:17 +00:00
|
|
|
.. _contrib docs: http://docs.djangoproject.com/en/dev/ref/staticfiles/
|