I am currently trying to set the category as the URL in Django but I am running into an error that states '; expected.javascript'
{% for category in all_categories %}
<div onclick="location.href='{% url 'category' category.category %}';"
style="box-shadow:0 5px 30px 0 rgba(0,0,0,.05);"
class="hover:scale-105 hover:transform transition duration-300 cursor-pointer bg-gray-900 rounded-lg h-40 w-full my-4 text-center p-5 grid place-items-center">
<div>
<p class='text-4xl my-2'><i
class="bi bi-tags text-transparent bg-clip-text bg-gradient-to-r from-cyan-200 to-blue-500"></i>
</p>
<p class='text-base'>{{ category.category }}</p>
</div>
</div>
{% endfor %}