NoReverseMatch at /home/ error

28 views
Skip to first unread message

Parfait TOLEFO

unread,
Apr 23, 2023, 12:21:43 PM4/23/23
to Django users
error.pngHello everyone, please, I have this error  NoReverseMatch at /home/ when I want to put link to home page from other page.

VEW.png
This is my views.py content

URL.png

This is my urls.py content.


Please help me. Thank you so much

Sebastian Jung

unread,
Apr 23, 2023, 12:38:51 PM4/23/23
to django...@googlegroups.com
Hello,

This can't be work with {% urls 'home' %} from another website. Pls writes /home in href...

Regards

--
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/aa768d6d-5348-4c8d-ab7a-37617309572cn%40googlegroups.com.

Parfait TOLEFO

unread,
Apr 23, 2023, 12:48:50 PM4/23/23
to django...@googlegroups.com
Thank you for your help. I add name=‘home’ in the url and it is ok now .

Reply all
Reply to author
Forward
0 new messages