STATICFILES and the static Tag
Organize and reference your assets.
What Static Files Are
Your CSS, JavaScript, and design images do not change per request. Django calls these static files and serves them separately from your Python views. 🎨
The static App
Django ships django.contrib.staticfiles in INSTALLED_APPS by default. It finds, collects, and serves your assets so you do not wire that up by hand.
INSTALLED_APPS = [
'django.contrib.staticfiles',
]All lessons in this course
- STATICFILES and the static Tag
- collectstatic for Production
- MEDIA_ROOT and File Uploads
- ImageField and Serving Uploads