Skip to content

Commit d469069

Browse files
committed
Upgrade project to latest versions of python and django
1 parent 468120f commit d469069

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

imagekit/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ def configure_cache_timeout(self, value):
3636

3737
def configure_default_file_storage(self, value):
3838
if value is None:
39-
value = settings.DEFAULT_FILE_STORAGE
39+
try:
40+
value = settings.STORAGES["default"]["BACKEND"]
41+
except AttributeError:
42+
value = settings.DEFAULT_FILE_STORAGE
4043
return value

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
[tox]
22
envlist =
3-
py{36,37,38,39,310}-django{22,31,32},
3+
py{37,38,39,310,311}-django{32,41,42},
44
py310-djangomain,
55
coverage-report
66

77
[gh-actions]
88
python =
9-
3.6: py36
109
3.7: py37
1110
3.8: py38
1211
3.9: py39
13-
3.10: py310, coverage-report
12+
3.10: py310
13+
3.11: py311, coverage-report
1414

1515
[testenv]
1616
deps =
1717
-r test-requirements.txt
18-
django22: django~=2.2.0
19-
django31: django~=3.1.0
2018
django32: django~=3.2.0
19+
django41: django~=4.1.0
20+
django42: django~=4.2.0
2121
djangomain: https://github.com/django/django/archive/refs/heads/main.zip
2222

2323
setenv = COVERAGE_FILE=.coverage.{envname}

0 commit comments

Comments
 (0)