Skip to content

Commit

Permalink
deps: django upgrade to 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ra authored and goapunk committed Jun 24, 2024
1 parent 6527382 commit ac0c461
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.19 on 2024-06-20 14:56
# Generated by Django 4.2 on 2024-06-24 09:54

from django.db import migrations
import wagtail.images.models
Expand All @@ -19,6 +19,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='customrendition',
name='file',
field=wagtail.images.models.WagtailImageField(height_field='height', upload_to=wagtail.images.models.get_rendition_upload_to, width_field='width'),
field=wagtail.images.models.WagtailImageField(height_field='height', storage=wagtail.images.models.get_rendition_storage, upload_to=wagtail.images.models.get_rendition_upload_to, width_field='width'),
),
]
6 changes: 6 additions & 0 deletions changelog/8222_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### Changed

- Django from 4.0 to 4.2
- production settings for storage
- from psycopg2 to psycopg3
- sentry to 2.3.1
5 changes: 2 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
brotli==1.0.9
Django==4.0
Django==4.2
django-cloudflare-push==0.2.2
djangorestframework==3.15.1
django-sites==0.11
sentry-sdk==1.26.0
wagtail==5.2.5
sentry-sdk==2.3.1
whitenoise==6.5.0
2 changes: 1 addition & 1 deletion requirements/prod.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-r base.txt
psycopg2==2.9.6
psycopg[c]==3.1.18
9 changes: 8 additions & 1 deletion tempelhof/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

DEBUG = False

STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": 'whitenoise.storage.CompressedManifestStaticFilesStorage',
},
}

try:
from .local import *
Expand Down

0 comments on commit ac0c461

Please sign in to comment.