Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ python:
env:
- DJANGO="Django>=1.8.0,<1.9.0"
- DJANGO="Django>=1.11,<1.12.0"
- DJANGO="Django>=2.0,<2.1"
matrix:
exclude:
- python: '2.7'
env: DJANGO="Django>=2.0,<2.1"
install:
- pip install -q $DJANGO
- pip install -q -r test_reqs.txt
Expand Down
5 changes: 4 additions & 1 deletion djangowind/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
except ImportError:
from django.contrib.sites.models import RequestSite
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.core.urlresolvers import reverse
try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse

from django.views.decorators.cache import never_cache
from django.views.decorators.csrf import csrf_exempt
Expand Down
6 changes: 6 additions & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ def main():
# Dynamically configure the Django settings with the minimum necessary to
# get Django running tests
settings.configure(
MIDDLEWARE=(
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
),
# For django 1.8
MIDDLEWARE_CLASSES=(
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down