Skip to content

Commit

Permalink
Add compatibility with Django 1.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Apr 5, 2017
1 parent 8562713 commit 190b584
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion overextends/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_overextends(self):
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)
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
include_package_data = True,
packages = find_packages(),
install_requires = [
"django >= 1.8, < 1.11",
"django >= 1.8, < 2.0",
],
extras_require = {
'dev': [
Expand All @@ -28,10 +28,13 @@
"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",
Expand Down
2 changes: 1 addition & 1 deletion test_project/urls.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@

urlpatterns = []

0 comments on commit 190b584

Please sign in to comment.