If you have django debug toolbar installed, loaded and being used then the statics for admin & drf won't work. It is a conflict between them. Disable debug toolbar if you need the statics to work for admin & drf pages.
versions: django 5.1.x
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, "static"),
    os.path.join(BASE_DIR, "media"),
]
# Static files
STATIC_URL = f"{STATIC_URL_BUCKET}/static/"  # Or use your public MinIO endpoint
# Media files (user uploads)
MEDIA_URL = "/media/"  # Not used for direct serving, but required by Django 
 
No comments:
Post a Comment