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
From: meera gangani
Sent: 03 June 2020 12:49
To: django-users@googlegroups.com
Subject: Please help me out!!!!!
Hello Django-users
href is not working
here is my views.py file and my urls.py file
Please Help me out!!
Thank you in advance
-Meera
--
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+unsubscribe@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.
No comments:
Post a Comment