configuring static and media files in django code example Example: staticfiles STATICFILES_DIRS = [BASE_DIR / 'static']