Compare commits

..

14 commits

Author SHA1 Message Date
krek0
ae1ad6965f Fix thumbnail crop to preserve image aspect ratio in gallery grid
All checks were successful
Docker / build (release) Successful in 8s
2026-05-05 14:25:29 +02:00
krek0
7319a738f4 Push latest tag on docker image on release
All checks were successful
Docker / build (release) Successful in 52s
2026-05-04 09:04:59 +02:00
krek0
640c75e499 Fix image display in Docker by loading initial fixtures on startup 2026-05-04 09:04:54 +02:00
krek0
dcd944b8c6 Drop de/es locales, complete fr translations, add navbar language switcher. 2026-05-03 23:35:51 +02:00
krek0
f782c58976 update readme 2026-05-03 18:29:54 +02:00
krek0
792f7517e3 Add Docker support with Dockerfile and entrypoin
All checks were successful
Docker / build (release) Successful in 7s
2026-05-03 16:54:46 +02:00
krek0
faf880a236 Add requests in requirements 2026-05-02 14:19:10 +02:00
krek0
7fbc81b9e1 Make database, oauth, smtp server, mail verificaiton configurable in .env 2026-05-02 14:18:02 +02:00
krek0
3a73bb8887 Fix thumbnail bar render 2026-04-25 12:12:30 +02:00
krek0
74609215e0 Add public link filter to Gallery admin 2026-04-25 08:31:56 +02:00
krek0
1a5f1d5e81 Enable Write-Ahead Logging (WAL) for SQLite to improve performance when using it. 2026-04-25 08:31:56 +02:00
krek0
d44b31f024 Remove Nginx-specific static and media serving, and serve media through Django using WhiteNoise and FileResponse. 2026-04-25 08:31:56 +02:00
krek0
3d985e473d Rennes rebranding 2026-04-25 01:02:56 +02:00
krek0
687445e414 Add justified photo grid layout with lazy loading and image dimensions. 2026-04-25 01:02:48 +02:00

View file

@ -1,31 +0,0 @@
from django.db import migrations
def regen_thumbnails(apps, schema_editor):
Photo = apps.get_model("photologue", "Photo")
PhotoSize = apps.get_model("photologue", "PhotoSize")
try:
thumbnail = PhotoSize.objects.get(name="thumbnail")
except PhotoSize.DoesNotExist:
return
for photo in Photo.objects.all():
# Use the real model instance to access file methods
from photologue.models import Photo as RealPhoto
try:
real_photo = RealPhoto.objects.get(pk=photo.pk)
real_photo.remove_size(thumbnail)
except Exception:
pass
class Migration(migrations.Migration):
dependencies = [
("photologue", "0008_photo_dimensions"),
]
operations = [
migrations.RunPython(regen_thumbnails, migrations.RunPython.noop),
]