Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Django 3.0 #29

Merged
merged 1 commit into from
Dec 6, 2019
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ python:
- "3.6"
- "3.7"
- "3.8"
- pypy3.5-6.0
- pypy3.6-7.1.1


install: pip install tox-travis codecov
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ etc is done elsewhere.
Supported Django Versions
=========================

Django 1.11, 2.1, and 2.2 are currently supported by this library.
Django 2.1, 2.2, and 3.0 are currently supported by this library.

Supported Python Versions
=========================

Python 2.7, 3.5, 3.6. 3.7, and 3.8 are currently supported by this library.
Python 3.5, 3.6. 3.7, and 3.8 are currently supported by this library.

Installation
============
Expand Down
8 changes: 4 additions & 4 deletions examples/protected_downloads/download/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404, render_to_response
from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseForbidden
from django.db.models import Q
from django.template import RequestContext
Expand Down Expand Up @@ -29,6 +29,6 @@ def download_list(request):
downloads = downloads.filter(Q(is_public=True) | Q(users=request.user))
else:
downloads = downloads.filter(is_public=True)
return render_to_response('download/download_list.html',
{'download_list': downloads},
context_instance=RequestContext(request))
return render(request, 'download/download_list.html',
{'download_list': downloads},
context_instance=RequestContext(request))
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[tox]
envlist =
clean
py{py3,35,36,37,38}-django{21,22}
py{py3,36,37,38}-django{21,22,30}
py35-django{21,22}
flake8
coverage

Expand All @@ -10,11 +11,13 @@ usedevelop=True
deps =
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
coverage
changedir = examples/protected_downloads
commands =
python --version
coverage run --rcfile=../../.coveragerc -a manage.py test django_sendfile {posargs}
setenv = PYTHONWARNINGS = default

[travis]
python =
Expand Down