Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

62 views
Skip to first unread message

Markus Grossniklaus

unread,
Apr 14, 2020, 6:27:21 PM4/14/20
to Django users
a) I worked the whole tutorial down to the bottom of part 3
b) I connect with the browser to http://127.0.0.1:8000/polls/
c) the result is: NoReverseMatch at /polls/
d) all project data are attached to this POST in mysite.zip
e) I think it cannot be a difficult problem -> does anybody see it?
Thanx for any help!

NoReverseMatch.PNG

mysite2.zip

Chucky Mada Madamombe

unread,
Apr 15, 2020, 1:12:08 AM4/15/20
to django...@googlegroups.com
Hi,

The problem is with your url namespacing in index.html template. Try {% url 'polls:detail' %} instead of  {% url 'polls:detail' question.text %}. Remove the question.text. 

Regards

Chuck G. Madamombe
NAM: +264 81 842 1284
RSA: +27 78 208 7034
Twitter: @chuckygari
Skype: chuckygari
Facebook: Chucky Mada Madamombe
LinkedIn: Chucknorris Garikayi Madamombe

--
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/a5381689-508f-4344-9599-919c245b56b2%40googlegroups.com.
NoReverseMatch.PNG

Markus Grossniklaus

unread,
Apr 18, 2020, 5:45:51 PM4/18/20
to Django users
Thanks a lot Chucky!
No error message
displays at least one dot! fine

shows ERR_CONNECTION_REFUSED 
even with no Proxy active and iptables shows no restrictions e.g. everything is allowed
How could I debug this?

Jorge Gimeno

unread,
Apr 19, 2020, 10:19:16 AM4/19/20
to django...@googlegroups.com
If settings.DEBUG == False, then you have to put the allowed addresses
in settings.ALLOWED_HOSTS. If Debug is True, then I'm not sure what's
going on.

-Jorge
> --
> 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/f3ecb032-80c9-49bf-89da-e1656752fe89%40googlegroups.com.
>

sahil khan

unread,
Apr 22, 2020, 1:39:45 PM4/22/20
to django...@googlegroups.com
Plz go on my  you tube channel you will get your error regarding sollution on my channel 
Link 


Awa M. Kinason

unread,
Apr 22, 2020, 6:01:28 PM4/22/20
to django...@googlegroups.com
You are having an error on your template. {%url 'polls:detail' question.id%}  instead of {% url 'polls:detail' question.id %}

Take note of the space after or before the percentage sign. Django Templating Engine requires you to respect the rules. If you even add double spaces where you are supposed to have one space, it's a problem. 

Hope this helps. 

Reply all
Reply to author
Forward
0 new messages