dHey tom... The homepage displays a list of entries posted by users... Each entry has a submit button next to it, I watched many tutorials and i still dont get how those requests work...
I made the view as above and the main idea is to add +1 to my "pushes"(my model has a pushes field wich is an integer field). Plus I don't want it to leave the page. That's why i didn't add a render_to_response() I created the form as above, and when i click on the submit button it doesn't do anything at all, well it shows it refreshed the page but it didn't add a +1 neither an error occurs On Monday, March 5, 2012 5:35:29 PM UTC+2, Tom Evans wrote: > > On Mon, Mar 5, 2012 at 3:24 PM, leaks <tonykyriaki...@gmail.com> wrote: > > no, no errors get displayed... Just nothing happens. > > Absolutely and literally 'nothing happens'? Really? > > Does the browser submit the form, django receive a request and render > a response? I would definitely class that as 'something' and not > 'nothing'. > > We can only help you if you help us. You need to explain precisely > what happens, and what you expected to happen. Saying 'nothing > happens' is nonsense, and perhaps if you had investigated what was > actually happening, you may have understood why it didn't happen as > you expected, rather than expecting us to magically deduce both things > from the ether. > > Cheers > > Tom > > On Monday, March 5, 2012 5:35:29 PM UTC+2, Tom Evans wrote: > > On Mon, Mar 5, 2012 at 3:24 PM, leaks <tonykyriaki...@gmail.com> wrote: > > no, no errors get displayed... Just nothing happens. > > Absolutely and literally 'nothing happens'? Really? > > Does the browser submit the form, django receive a request and render > a response? I would definitely class that as 'something' and not > 'nothing'. > > We can only help you if you help us. You need to explain precisely > what happens, and what you expected to happen. Saying 'nothing > happens' is nonsense, and perhaps if you had investigated what was > actually happening, you may have understood why it didn't happen as > you expected, rather than expecting us to magically deduce both things > from the ether. > > Cheers > > Tom > > On Monday, March 5, 2012 5:35:29 PM UTC+2, Tom Evans wrote: > > On Mon, Mar 5, 2012 at 3:24 PM, leaks <tonykyriaki...@gmail.com> wrote: > > no, no errors get displayed... Just nothing happens. > > Absolutely and literally 'nothing happens'? Really? > > Does the browser submit the form, django receive a request and render > a response? I would definitely class that as 'something' and not > 'nothing'. > > We can only help you if you help us. You need to explain precisely > what happens, and what you expected to happen. Saying 'nothing > happens' is nonsense, and perhaps if you had investigated what was > actually happening, you may have understood why it didn't happen as > you expected, rather than expecting us to magically deduce both things > from the ether. > > Cheers > > Tom > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/iFdP8Mr7JXIJ. 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.