Href={% url ‘ name’%}
Where name is the name parameter of the view in urls.py.
Urlpatterns=[path(“/myview”, views.myview, name=”myview”)]
In this case
Href={% url ‘ App_name/myview’%}
Write your app name in App name
Sent from Mail for Windows 10
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com.
Hello Meera,Did you try using urls as<a href="{% url 'show notification' %}">And I think you should check what messages you received on the shell where you are running ./manage.py runserver command. This might give more information on the problem.
Regards
Ajay
--
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com.
<a href="{% url 'show notification' %}">
And I think you should check what messages you received on the shell where you are running ./manage.py runserver command. This might give more information on the problem.
Regards
Ajay
--
--