Bilder im Datenmodell angelegt, upload, Anzeige und delete

funktionieren.
This commit is contained in:
2026-05-19 23:53:18 +02:00
parent 5e06265a2f
commit 5ab93129ee
32 changed files with 298 additions and 3 deletions

View File

@@ -10,11 +10,13 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/6.0/ref/settings/
"""
import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') # Ordner, in dem die OriginalDateien landen
MEDIA_URL = '/media/' # URL-Pfad für den Zugriff (bspw. http://localhost:8000/media/...)
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/