Add compatibility with Django 1.11.

This commit is contained in:
Aymeric Augustin 2017-04-05 10:28:07 +02:00
parent 85627139f6
commit 190b584ad5
4 changed files with 16 additions and 3 deletions

View File

@ -3,17 +3,27 @@ env:
- DJANGO_VERSION=1.8.0
- DJANGO_VERSION=1.9.0
- DJANGO_VERSION=1.10.0
- DJANGO_VERSION=1.11.0
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
matrix:
exclude:
- python: "3.3"
env: "DJANGO_VERSION=1.9.0"
- python: "3.3"
env: "DJANGO_VERSION=1.10.0"
- python: "3.3"
env: "DJANGO_VERSION=1.11.0"
- python: "3.6"
env: "DJANGO_VERSION=1.8.0"
- python: "3.6"
env: "DJANGO_VERSION=1.9.0"
- python: "3.6"
env: "DJANGO_VERSION=1.10.0"
install:
- pip install django~=$DJANGO_VERSION
- pip install .

View File

@ -91,7 +91,7 @@ class Tests(TestCase):
with self.modify_settings(INSTALLED_APPS={
'prepend': self.test_apps
}):
html = get_template(self.unique_id).render(Context())
html = get_template(self.unique_id).render({})
previous = ""
for test_string in ["project"] + self.test_apps:
self.assertTrue(test_string in html)

View File

@ -15,7 +15,7 @@ setup(
include_package_data = True,
packages = find_packages(),
install_requires = [
"django >= 1.8, < 1.11",
"django >= 1.8, < 2.0",
],
extras_require = {
'dev': [
@ -28,10 +28,13 @@ setup(
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Framework :: Django",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Site Management",

View File

@ -1 +1 @@
urlpatterns = []