1 year ago
#367582
SSBHAV01
Django - Href not redirecting user but being loaded locally
I am creating a simple application in Django. I have an <a>
element, and when the user clicks on it, I want to be able to redirect them to a new page (classes.html).
I used href="{% url 'classes' %}"
, but when the user clicks on it, nothing happens. However, I can see that the URL has been loaded because the tag at the bottom screen loads the URL.
Additionally, when I inspect the element, I see that the URL has been loaded and when I click on it, it takes me to the classes URL. Can someone please help me so that when the user clicks on the , it redirects them to the classes screen?
I have tried conducting a hard reload, re-doing my URLs and views, and setting up a virtual environment, but nothing seems to work.
python
html
django
url
href
0 Answers
Your Answer