you are probably opening the wrong url, I also suggest using $ at the end of the regex
On Thu, Jan 9, 2014 at 1:06 PM, luca72 <lucabe...@libero.it> wrote: > Hello > i have defined an url as: > > (r'^tipi/(\w)', 'polls.views.tipi'), > > the template is: > > <div id="bordo_sx"> > {% if variabile == "vino" %} > <ul> > {% for a in lista_vini %} > <li><a href="/tipi/{{a}}">{{a}}</a></li> > {% endfor %} > </ul> > {% endif %} > </div> > > the view is: > def tipi(request,a): > if a == 'Barbaresco': > testo = ['Wine name: BARBARESCO','Region: Piedmont'] > titolo = 'Wines' > variabile = 'vino' > return render_to_response('vini.html',{'testo':testo,'titolo':titolo, > 'testo':testo,'variabile':variabile,}) > > But i get that i don't have a http response where is the error? > > Thanks Luca > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a1c96c85-0190-465d-a23f-8ad04d2b5792%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWa6t%2BAK6d3piQ%2B0Ef53N4NKeokHjvkJQjTF%3DuHqCUqjrRW%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.