How to set up static files in Django?

How to set up static files in Django?

To set up static files in Django -

  1. We need to include django.contrib.staticfiles .
  2. Need to define STATIC_URL.
  3. static template tag is used to build the URL for the relative path, used in the project.
  4. Store all the static files in the folder, called static in our application (or app).