Hi all, I have the correct url, but the dev server seems to be caching my old template, even though I updated it to include namespacing. I have restarted the server and cleared my browser cache.
<li><a href="{% url 'contact_us' %}">contacts</a></li> On Tue, Apr 9, 2013 at 5:11 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>wrote: > Tom, > > The latter. I did not call reverse explicitly (not yet). I have > implemented namespacing as recommended. > > <a href="{% url 'contact_us:contact_us' %}">Contact Us</a> > > Sinister indeed. > > > On Tue, Apr 9, 2013 at 4:59 PM, Tom Evans <tevans...@googlemail.com>wrote: > >> On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube >> <zebr...@gmail.com> wrote: >> > Hi Tom, >> > >> > I see what you meant. In the documentation (tutorial) namespacing is >> used in >> > the form example. Even with that in place, I am having trouble. >> > >> > I did notice that I am not getting a 404 error instead, because the url >> > being built is dumplicated. Please see the trace below (errant line >> ibeing >> > #8): >> > >> > Using the URLconf defined in tjbengineeringsite.urls, Django tried >> these URL >> > patterns, in this order: >> > >> > ^$ [name='plant_refurbishment'] >> > ^about_us/$ [name='about_us'] >> > ^instrumentation_and_control/$ [name='instrumentation_and_control'] >> > ^machining/$ [name='machining'] >> > ^industrial_solutions/$ [name='industrial_solutions'] >> > ^trailer_refurbishment/$ [name='trailer_refurbishment'] >> > ^trailer_spares/$ [name='trailer_spares'] >> > ^contact_us/ ^$ [name='contact_us'] >> > ^admin/ >> > >> > The current URL, contact_us/contact_us/, didn't match any of these. >> > >> >> Are you saying that this url was the result of calling reverse() (or {% >> url %})? >> >> Cheers >> >> Tom >> >> -- >> 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+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > -- > Regards, > Sithu Lloyd Dube > -- Regards, Sithu Lloyd Dube -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.