Add settings for staticfiles

This commit is contained in:
Tobias Kunze 2025-03-16 10:06:03 +01:00
parent d03d5faa98
commit c141f05c42

View file

@ -92,8 +92,16 @@ MIDDLEWARE = [
ROOT_URLCONF = "servala.urls"
STATIC_URL = "static/" # CSS, JavaScript, etc.
# Collected static files as provided by ``collectstatic`` management command are stored here ready to be served by a web server.
STATIC_ROOT = BASE_DIR / "static.dist"
MEDIA_URL = "media/" # User uploads, e.g. images
# Additional locations of static files
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
)
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",