File tree 5 files changed +26
-19
lines changed
5 files changed +26
-19
lines changed Original file line number Diff line number Diff line change 1
1
django-dbtemplates
2
2
==================
3
3
4
- .. image :: https://secure.travis-ci.org/jazzband/django-dbtemplates.png
5
- :alt: Build Status
6
- :target: http://travis-ci.org/jazzband/django-dbtemplates
7
-
8
4
.. image :: https://jazzband.co/static/img/badge.svg
9
5
:alt: Jazzband
10
6
:target: https://jazzband.co/
11
7
8
+ .. image :: https://travis-ci.org/jazzband/django-dbtemplates.svg?branch=master
9
+ :alt: Build Status
10
+ :target: http://travis-ci.org/jazzband/django-dbtemplates
11
+
12
+ .. image :: https://codecov.io/github/jazzband/django-dbtemplates/coverage.svg?branch=master
13
+ :alt: Codecov
14
+ :target: https://codecov.io/github/jazzband/django-dbtemplates?branch=master
15
+
12
16
``dbtemplates `` is a Django app that consists of two parts:
13
17
14
18
1. It allows you to store templates in your database
@@ -24,10 +28,4 @@ The source code and issue tracker can be found on Github:
24
28
25
29
https://github.com/jazzband/django-dbtemplates
26
30
27
- Compatibility Roadmap
28
- ---------------------
29
-
30
- - 1.3.2 ``dbtemplates `` dropped support for Django < 1.4
31
- - 1.4 will be supported only Django >= 1.7, please freeze your requirements on specific version of ``dbtemplates `` !
32
-
33
31
.. _template loader : http://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types
Original file line number Diff line number Diff line change 6
6
from django .conf import settings as django_settings
7
7
from django .core .cache .backends .base import BaseCache
8
8
from django .core .management import call_command
9
- from django .template import loader , Context , TemplateDoesNotExist
9
+ from django .template import loader , TemplateDoesNotExist
10
10
from django .test import TestCase
11
11
12
12
from django .contrib .sites .models import Site
@@ -82,9 +82,9 @@ def test_load_templates_sites(self):
82
82
settings .DBTEMPLATES_ADD_DEFAULT_SITE = old_add_default_site
83
83
84
84
def test_load_templates (self ):
85
- result = loader .get_template ("base.html" ).render (Context ({}) )
85
+ result = loader .get_template ("base.html" ).render ()
86
86
self .assertEqual (result , 'base' )
87
- result2 = loader .get_template ("sub.html" ).render (Context ({}) )
87
+ result2 = loader .get_template ("sub.html" ).render ()
88
88
self .assertEqual (result2 , 'sub' )
89
89
90
90
def test_error_templates_creation (self ):
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ To enable one of them you need to specify a setting called
20
20
.. note::
21
21
Starting in version 1.0 ``dbtemplates`` allows you also to set the new
22
22
dict-based ``CACHES`` setting, which was introduced in Django 1.3.
23
-
23
+
24
24
All you have to do is to provide a new entry in the ``CACHES`` dict
25
25
named ``'dbtemplates'``, e.g.::
26
26
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
- v1.4 (unreleased)
4
+ v2.0 (unreleased)
5
5
-----------------
6
6
7
7
* Moved to Jazzband: https://github.com/jazzband/django-dbtemplates
8
8
9
+ * Dropped support for Python 2.6
10
+
11
+ * Added support for Python 3.4 and 3.5
12
+
13
+ * Dropped support for Django < 1.8
14
+
15
+ * Removed South migrations. Please use Django's native migration system instead
16
+
17
+ * Removed the example project since it's out-of-date quickly
18
+
9
19
v1.3.2 (2015-06-15)
10
20
-------------------
11
21
@@ -179,7 +189,7 @@ v0.7.1 (2010-07-07)
179
189
180
190
* Fixed problem with the ``DBTEMPLATES_MEDIA_PREFIX`` setting, which defaults
181
191
now to ``os.path.join(settings.MEDIA_ROOT, 'dbtemplates')`` now.
182
-
192
+
183
193
In other words, if you don't specify a ``DBTEMPLATES_MEDIA_PREFIX`` setting
184
194
and have the CodeMirror textarea enabled, dbtemplates will look in a
185
195
subdirectory of your site's ``MEDIA_ROOT`` for the CodeMirror media files.
@@ -289,10 +299,10 @@ v0.5.0
289
299
empty by using Django's other template loaders
290
300
291
301
* added caching backend system with two default backends:
292
-
302
+
293
303
* ``FileSystemBackend``
294
304
* ``DjangoCacheBackend``
295
-
305
+
296
306
More about it in the `blog post`_ and in the docs.
297
307
298
308
.. _django-reversion: http://code.google.com/p/django-reversion/
Original file line number Diff line number Diff line change 1
1
flake8<3
2
- django-discover-runner
3
2
coverage
You can’t perform that action at this time.
0 commit comments