why are my static files not loading in django

  1. Ensure STATIC_URL is set correctly in your settings.py file.
  2. Add the {% load static %} tag at the top of your template file.
  3. Use {% static %} to reference your static files in your HTML template.
  4. Run python manage.py collectstatic to gather all static files into the directory specified by STATIC_ROOT.
  5. Ensure DEBUG is set to True in your development settings to serve static files.