Hi try this
Urlpatterns=[
path(“/myview”, views.myview, name=”myview”)
]
In this case
Href={% url ‘ App_name/myview’%}
Write your app name in App name
but here Href={% url ‘ App_name/myview’%} put it this way href={% url ‘
App_name:myview’%} with :
El mié., 3 jun. 2020 a las 8:00, meera gangani (<[email protected]>)
escribió:
> 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 <[email protected]> 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
>>
>>
>> On Wed, Jun 3, 2020 at 10:21 AM meera gangani <[email protected]>
>> wrote:
>>
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAPuXgy6jOnWr5TsmBrLJ9%2BvHFE8Jp76Zgn_UJRW33H4-abnnxQ%40mail.gmail.com.