Skip to content

Commit 7454e10

Browse files
committed
Update docs
1 parent d7ecd93 commit 7454e10

File tree

5 files changed

+26
-19
lines changed

5 files changed

+26
-19
lines changed

README.rst

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
django-dbtemplates
22
==================
33

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-
84
.. image:: https://jazzband.co/static/img/badge.svg
95
:alt: Jazzband
106
:target: https://jazzband.co/
117

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+
1216
``dbtemplates`` is a Django app that consists of two parts:
1317

1418
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:
2428

2529
https://github.com/jazzband/django-dbtemplates
2630

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-
3331
.. _template loader: http://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types

dbtemplates/test_cases.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from django.conf import settings as django_settings
77
from django.core.cache.backends.base import BaseCache
88
from django.core.management import call_command
9-
from django.template import loader, Context, TemplateDoesNotExist
9+
from django.template import loader, TemplateDoesNotExist
1010
from django.test import TestCase
1111

1212
from django.contrib.sites.models import Site
@@ -82,9 +82,9 @@ def test_load_templates_sites(self):
8282
settings.DBTEMPLATES_ADD_DEFAULT_SITE = old_add_default_site
8383

8484
def test_load_templates(self):
85-
result = loader.get_template("base.html").render(Context({}))
85+
result = loader.get_template("base.html").render()
8686
self.assertEqual(result, 'base')
87-
result2 = loader.get_template("sub.html").render(Context({}))
87+
result2 = loader.get_template("sub.html").render()
8888
self.assertEqual(result2, 'sub')
8989

9090
def test_error_templates_creation(self):

docs/advanced.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To enable one of them you need to specify a setting called
2020
.. note::
2121
Starting in version 1.0 ``dbtemplates`` allows you also to set the new
2222
dict-based ``CACHES`` setting, which was introduced in Django 1.3.
23-
23+
2424
All you have to do is to provide a new entry in the ``CACHES`` dict
2525
named ``'dbtemplates'``, e.g.::
2626

docs/changelog.txt

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
Changelog
22
=========
33

4-
v1.4 (unreleased)
4+
v2.0 (unreleased)
55
-----------------
66

77
* Moved to Jazzband: https://github.com/jazzband/django-dbtemplates
88

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+
919
v1.3.2 (2015-06-15)
1020
-------------------
1121

@@ -179,7 +189,7 @@ v0.7.1 (2010-07-07)
179189

180190
* Fixed problem with the ``DBTEMPLATES_MEDIA_PREFIX`` setting, which defaults
181191
now to ``os.path.join(settings.MEDIA_ROOT, 'dbtemplates')`` now.
182-
192+
183193
In other words, if you don't specify a ``DBTEMPLATES_MEDIA_PREFIX`` setting
184194
and have the CodeMirror textarea enabled, dbtemplates will look in a
185195
subdirectory of your site's ``MEDIA_ROOT`` for the CodeMirror media files.
@@ -289,10 +299,10 @@ v0.5.0
289299
empty by using Django's other template loaders
290300

291301
* added caching backend system with two default backends:
292-
302+
293303
* ``FileSystemBackend``
294304
* ``DjangoCacheBackend``
295-
305+
296306
More about it in the `blog post`_ and in the docs.
297307

298308
.. _django-reversion: http://code.google.com/p/django-reversion/

requirements/tests.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
flake8<3
2-
django-discover-runner
32
coverage

0 commit comments

Comments
 (0)