Add tradeOffer image field, tweak image generation to only fire once per tradeOffer, even with simultaneous requests

This commit is contained in:
badblocks 2025-03-29 15:13:57 -07:00
parent 138a929da6
commit 2d826734a0
9 changed files with 127 additions and 80 deletions

View file

@ -169,6 +169,12 @@ STATIC_URL = "/static/"
# https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#std:setting-STATICFILES_DIRS
STATICFILES_DIRS = [BASE_DIR / "static"]
# https://docs.djangoproject.com/en/dev/ref/settings/#media-root
MEDIA_ROOT = BASE_DIR / "media"
# https://docs.djangoproject.com/en/dev/ref/settings/#media-url
MEDIA_URL = "/media/"
# https://whitenoise.readthedocs.io/en/latest/django.html
STORAGES = {
"default": {