0Pricing
Django Academy · Lesson

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

  1. STATICFILES and the static Tag
  2. collectstatic for Production
  3. MEDIA_ROOT and File Uploads
  4. ImageField and Serving Uploads
← Back to Django Academy