Hi James,

That was it! thanks a bunch for pointing that out.

cheers,
Jack


On Sunday, October 4, 2015 at 11:03:03 PM UTC+2, James Schneider wrote:
>
> > This is my mysite/url,py
> >
> > from django.contrib import admin
> >
> > urlpatterns = [
> >     url(r'^admin/', include(admin.site.urls)),
> >     url(r'^polls/', include('polls.urls',namespace = "polls")),
> > ].
> >
>
> Oh, yep, there's the problem. You added a namespace called 'polls' but you 
> aren't referencing it in your template, so the URL resolver isn't using 
> your polls/urls.py file for that {% url %} call. You probably forgot to 
> update the {% url %} tag after the tutorial portion that added the 
> namespace to the mysite/urls.py file.
>
> You need to update your {% url %} tag to use 'polls:detail' rather than 
> just 'detail'. 
>
> See the last code box on that tutorial page: 
> https://docs.djangoproject.com/en/1.8/intro/tutorial03/#namespacing-url-names
>
> -James
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a03945b3-6522-4ed1-ae2d-40b12eeebb8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to