Django distinguishes two kinds of files: static files (assets that are part of your application — CSS, JavaScript, images you ship) and media files (files uploaded by users at runtime — profile pictures, documents). They're handled differently because their sources and lifecycles differ fundamentally.
Static files — your application's assets
STATIC_URL =
STATICFILES_DIRS = [BASE_DIR / ]
STATIC_ROOT = BASE_DIR /
