Skip to content

Commit f3c5901

Browse files
authored
Merge pull request #25 from uploadcare/feature/django_4.2
Update dependencies (including Django 4.2) fixes #24
2 parents 1d39b34 + 2ef192d commit f3c5901

7 files changed

Lines changed: 316 additions & 259 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
.vscode
44
.mypy_cache
55
db.sqlite3
6+
/secret.env

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim-buster
1+
FROM python:3.12-slim-bookworm
22

33
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
44

app/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/3.2/ref/settings/
1111
"""
12+
1213
import os
1314
from pathlib import Path
1415

@@ -41,6 +42,7 @@
4142
"django.contrib.messages",
4243
"django.contrib.staticfiles",
4344
"crispy_forms",
45+
"crispy_bootstrap4",
4446
"pyuploadcare.dj",
4547
"uploadcare",
4648
]
@@ -130,7 +132,7 @@
130132

131133
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
132134

133-
135+
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap4"
134136
CRISPY_TEMPLATE_PACK = "bootstrap4"
135137

136138
# Uploadcare settings

app/uploadcare/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1. Import the include() function: from django.urls import include, path
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
16+
1617
from django.urls import path
1718

1819
from uploadcare.views.addons import (

app/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1. Import the include() function: from django.urls import include, path
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
16+
1617
from django.contrib import admin
1718
from django.urls import include, path
1819

poetry.lock

Lines changed: 300 additions & 249 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
[tool.poetry]
22
name = "pyuploadcare-example"
3-
version = "5.0.0"
3+
version = "5.0.1"
44
description = "Example project for Python library for Uploadcare.com"
55
authors = ["Uploadcare Inc <hello@uploadcare.com>"]
66

77
[tool.poetry.dependencies]
88
python = "^3.8.1"
9-
Django = "^3.2.8"
10-
django-crispy-forms = "^1.13.0"
11-
pyuploadcare = {git = "https://github.com/uploadcare/pyuploadcare", tag = "v5.0.0"}
9+
Django = "^4.2.10"
10+
django-crispy-forms = "^2.1"
11+
crispy-bootstrap4 = "^2023.1"
12+
pyuploadcare = {git = "https://github.com/uploadcare/pyuploadcare", tag = "v5.0.1"}
1213

1314
[tool.poetry.dev-dependencies]
14-
flake8 = "^4.0.1"
15-
mypy = "^0.910"
16-
black = "^22.3"
17-
isort = "^5.9.3"
15+
flake8 = "^7.0.0"
16+
mypy = "^1.8.0"
17+
black = "^24.1.1"
18+
isort = "^5.13.2"
1819

1920
[build-system]
2021
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)