add custom image model, fetch alt text

This commit is contained in:
2024-05-15 04:42:42 +02:00
parent 5540040ea2
commit 71b0a87180
26 changed files with 358 additions and 132 deletions

View File

@@ -25,6 +25,7 @@ BASE_DIR = os.path.dirname(PROJECT_DIR)
INSTALLED_APPS = [
"dnscms",
"images",
"home",
"generic",
"associations",
@@ -159,6 +160,7 @@ MEDIA_URL = "/media/"
# Wagtail settings
WAGTAIL_SITE_NAME = "dnscms"
WAGTAILIMAGES_IMAGE_MODEL = "images.CustomImage"
# Search
# https://docs.wagtail.org/en/stable/topics/search/backends.html
@@ -184,6 +186,7 @@ GRAPPLE = {
"associations",
"events",
"venues",
"images",
],
"EXPOSE_GRAPHIQL": True,
}