What's in your add_to_cart view function? On 9/21/11, Fabio Natali <fa...@fnstudio.it> wrote: > On 09/21/2011 07:57 AM, Andres Reyes wrote: >> I believe that the best practice is to always use the {% url %} template >> tag and not hardcoding your URL's > > That makes perfect sense. Thanks for your precious tip! > > So I added {% url add_to_cart %} to my template. However, it silenty > fails and I am redirected to my main page with no error whatsoever. > > ### urls.py > (r'^add_to_cart/$', add_to_cart) > > Any tips? > > Thanks and greetings, Fabio. > > -- > Fabio Natali FNstudio > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > >
-- Sent from my mobile device -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.