Skip to content

Commit 106e49c

Browse files
committed
Upgrade to Django 2.2.
Update dependencies for django 2.2 compatibility
1 parent 8467a50 commit 106e49c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+541
-263
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ static/stylesheets/no-mq.css
1717
static/stylesheets/style.css
1818
__pycache__
1919
*.db
20+
*.py[co]
2021
.vscode
22+
.idea
23+
.coverage
24+
.env
25+

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
repos:
2+
- repo: https://github.com/browniebroke/django-codemod
3+
# django-codemod is a tool to automatically
4+
# fix Django deprecations.
5+
# Any tag/version (>=1.5.7):
6+
# https://github.com/browniebroke/django-codemod/tags
7+
#
8+
# Automatic execution of this hook has been disabled
9+
# because it is a bit slow, but its configuration is
10+
# kept here, so it can be easily run:
11+
#
12+
# pre-commit run --hook-stage manual djcodemod
13+
# or
14+
# pre-commit run -a --hook-stage manual djcodemod
15+
rev: v1.5.7
16+
hooks:
17+
- id: djcodemod
18+
stages: [manual]
19+
args: [
20+
'run',
21+
'--deprecated-in', '1.9',
22+
'--deprecated-in', '1.10',
23+
'--deprecated-in', '1.11',
24+
'--deprecated-in', '2.0',
25+
'--deprecated-in', '2.1',
26+
'--deprecated-in', '2.2',
27+
'--deprecated-in', '3.0',
28+
'--deprecated-in', '3.1',
29+
]
30+
- repo: https://github.com/asottile/pyupgrade
31+
rev: v2.23.1
32+
hooks:
33+
- id: pyupgrade
34+
args: ['--py3-plus', '--py39-plus']

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: python
2-
python: 3.6
2+
python: 3.9
33
cache: pip
44
addons:
55
postgresql: "9.4"

banners/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default_app_config = 'banners.apps.BannersAppConfig'

banners/apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class BannersAppConfig(AppConfig):
5+
6+
name = 'banners'

base-requirements.txt

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,48 @@
11
dj-database-url==0.5.0
2-
django-pipeline==1.6.14
3-
django-sitetree==1.10.0
4-
Django==2.0.13
2+
django-pipeline==2.0.6
3+
django-sitetree==1.17.0
4+
Django==2.2.24
55
docutils==0.12
66
Markdown==3.3.4
7-
cmarkgfm==0.4.2
7+
cmarkgfm==0.6.0
88
Pillow==8.3.1
99
psycopg2==2.8.6
10-
python3-openid==3.1.0
10+
python3-openid==3.2.0
11+
python-decouple==3.4
1112
# lxml used by BeautifulSoup.
1213
lxml==4.6.3
13-
cssselect==0.9.1
14+
cssselect==1.1.0
1415
feedparser==6.0.8
15-
beautifulsoup4==4.6.0
16-
icalendar==3.8.4
16+
beautifulsoup4==4.9.3
17+
icalendar==4.0.7
1718
chardet==4.0.0
1819
# TODO: We may drop 'django-imagekit' completely.
1920
django-imagekit==4.0.2
20-
git+https://github.com/django-haystack/django-haystack.git@802b0f6f4b3b99314453261876a32bac2bbec94f
21+
django-haystack==3.0
2122
elasticsearch>=5,<6
2223
# TODO: 0.14.0 only supports Django 1.8 and 1.11.
23-
django-tastypie==0.14.1
24+
django-tastypie==0.14.3
2425

25-
pytz==2017.2
26-
python-dateutil==2.8.1
26+
pytz==2021.1
27+
python-dateutil==2.8.2
2728

2829
requests[security]>=2.26.0
2930

30-
django-honeypot==0.6.0
31-
django-markupfield==1.4.3
31+
django-honeypot==1.0.1
32+
django-markupfield==2.0.0
3233
django-markupfield-helpers==0.1.1
3334

3435
django-allauth==0.41.0
3536

36-
django-waffle==0.14
37+
django-waffle==2.2.1
3738

38-
djangorestframework==3.8.2
39-
django-filter==1.1.0
40-
django-ordered-model==3.4.1
39+
djangorestframework==3.12.2
40+
django-filter==2.4.0
41+
django-ordered-model==3.4.3
4142
django-widget-tweaks==1.4.8
42-
django-countries==6.1.3
43+
django-countries==7.2.1
4344
xhtml2pdf==0.2.5
44-
django-easy-pdf==0.1.1
45+
django-easy-pdf@https://github.com/labcodes/django-easy-pdf/archive/60f2a70a056655d271a215ceded57f97ffaa4fea.zip
4546
num2words==0.5.10
46-
django-polymorphic==2.1.2
47+
django-polymorphic==3.0.0
4748
sorl-thumbnail==12.7.0

blogs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default_app_config = 'blogs.apps.BlogsAppConfig'

blogs/apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class BlogsAppConfig(AppConfig):
5+
6+
name = 'blogs'

blogs/urls.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from django.conf.urls import url
2-
31
from . import views
2+
from django.urls import path
43

54
urlpatterns = [
6-
url(r'^$', views.BlogHome.as_view(), name='blog'),
5+
path('', views.BlogHome.as_view(), name='blog'),
76
]

boxes/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default_app_config = 'boxes.apps.BoxesAppConfig'

0 commit comments

Comments
 (0)