Add MEDIA_ROOT, MEDIA_URL and DIAGRAM_CACHE_DIR settings

This commit is contained in:
2025-10-23 22:59:40 +00:00
parent 67c393ecf1
commit 8dd3b4e9af

View File

@@ -139,6 +139,13 @@ STATICFILES_DIRS= (
os.path.join(BASE_DIR,"static"),
)
# Media files (User-uploaded content)
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Diagram cache settings
DIAGRAM_CACHE_DIR = 'diagram_cache' # relative to MEDIA_ROOT
# Default primary key field type
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field