Django-tailwindcss integration image not displayed

I already have a Django project with template file index.html but my image is not displaying I try everything including {% load static %} but still it is not working may be because i used {% load tailwind_tags %} and {% tailwind_css %} and i also created file as mentioned in Django official website for static file but still it is not working.

have you installed tailwindcss correctly. I was facing the same issue, here's what i did.

  1. Installed the django-tailwind
  2. I created static folder at root of the project and then configured the settings.py
  3. Loaded the {% load static tailwind_tags %} {% load static %} to the template

Here is the image path in the template <div class="py-1"><img src="{% static 'img/logo.svg' %}" alt=""></div> 4. I also have another open terminal running python manage.py tailwind start

I hope this helps

Back to Top