Please help me out!!!!!

38 views
Skip to first unread message

meera gangani

unread,
Jun 3, 2020, 3:21:27 AM6/3/20
to django...@googlegroups.com
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
Screen Shot 2020-06-03 at 12.46.05 PM.png
Screen Shot 2020-06-03 at 12.45.53 PM.png
Screen Shot 2020-06-03 at 12.47.25 PM.png
Screen Shot 2020-06-03 at 12.47.32 PM.png

Vishesh Mangla

unread,
Jun 3, 2020, 3:29:53 AM6/3/20
to django...@googlegroups.com

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.

 

meera gangani

unread,
Jun 3, 2020, 4:01:32 AM6/3/20
to Ajay Rathore, django...@googlegroups.com
Yes i Did,
But Nothing is working,
with data-toggle href is not working

On Wed, Jun 3, 2020 at 1:00 PM Ajay Rathore <arat...@badsi.ro> wrote:
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

--

maninder singh Kumar

unread,
Jun 3, 2020, 4:14:15 AM6/3/20
to django...@googlegroups.com
Is it a navbar or just a plain dropdown ?
 
               
 


Ajay Rathore

unread,
Jun 3, 2020, 6:17:11 AM6/3/20
to django...@googlegroups.com, meeraga...@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

On Wed, Jun 3, 2020 at 10:21 AM meera gangani <meeraga...@gmail.com> wrote:
--

Integr@te System

unread,
Jun 3, 2020, 6:47:40 AM6/3/20
to django...@googlegroups.com
Hi freind,

You ever check typo in your code in base.html on for loop at "noti"!?

gl!

--

Hella Nick

unread,
Jun 3, 2020, 11:39:49 AM6/3/20
to django...@googlegroups.com
请检查您的路由地址,问题就出现在那里。

meera gangani <meeraga...@gmail.com>于2020年6月3日 周三15:19写道:
--
Reply all
Reply to author
Forward
Message has been deleted
0 new messages