Django tutorial part 4: unresolved error?

57 views
Skip to first unread message

Su-Shin Ang

unread,
Nov 4, 2017, 10:52:33 PM11/4/17
to Django users
Hi all,

I am getting started with Django, and working through the tutorial. I am currently stuck at part 4, as follows.


Specifically, I am getting the following error.

NoReverseMatch at /polls/1/

'polls' is not a registered namespace

<form action="{% url 'polls:vote' question.id %}" method="post">

https://stackoverflow.com/questions/14892462/django-error-upolls-is-not-a-registered-namespace

I notice that there were a number of posts of it online, but no real resolution of the problem. I will to check if anyone out there has any thoughts about how to resolve this.

Thanks in advance,
Ed

Su-Shin Ang

unread,
Nov 4, 2017, 11:05:52 PM11/4/17
to Django users
Hi all,

I just realised my error, so no worries.

In my 'polls/urls.py', I am supposed the specify the value of the parameter, 'app_name', as 'polls'.

Instead, I used 'app_names' rather than 'app_name' - typo.

My bad!   
Ed
Reply all
Reply to author
Forward
0 new messages