Skip to content

Commit

Permalink
feat: Add support for django 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiabhi94 authored and Radi85 committed May 6, 2021
1 parent bdfdea1 commit e171d8f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def get_version():
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
Expand Down
3 changes: 2 additions & 1 deletion test/settings.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import os
import sys
import os.path

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_DIR = os.path.join(BASE_DIR, 'test/example')

SECRET_KEY = os.environ.get('SECRET_KEY', 'secret-key-is-unsafe')
DEBUG = os.environ.get('DEBUG', True) == 'True'
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '').split()
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'


# Application definition
Expand Down
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[tox]
envlist =
py{36, 39}-{django21, django31}
py{38, 39}-{djangomain}

py36-django{21, 32}
py37-django{21, 32}
py38-django{21, 32, main}
py39-django{21, 32, main}
[travis]
python =
3.6: py36
Expand All @@ -12,7 +13,7 @@ python =
[travis:env]
DJANGO =
2.1: django21
3.1: django31
3.2: django32
main: djangomain

[testenv]
Expand All @@ -28,6 +29,7 @@ deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
djangomain: https://github.com/django/django/archive/main.tar.gz

usedevelop = True
Expand Down

0 comments on commit e171d8f

Please sign in to comment.