How do you use a link as a post request?

2012-03-03 Thread leaks
How do you use a link as a post request? this is a thing that I have never done before... maybe use it inside a form? I searched and didn't find anything similar in django... Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Django users" group.

How can I make a view called "push" to add +1 to my Entry.push model?

2012-03-04 Thread leaks
I have this in mind: having entries in a page and people will be able to push them (voting them +1 to get them higher in the page). The more pushes the higher the post will be displayed. (I order them by the amount of pushes) I have put a submit button next to each post. The question: 1.How ca

Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread leaks
I don't get an error... Nothing just happens my view: (I think the problem is here) def push(request, pk): if request.method == 'POST': entry = Entry.objects.get(pk=pk) entry.pushes +=1 entry.save() My template: {% for entry in entries.object_list %} {{ entry.title

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread leaks
get any errors or anything? > > > -- > eng. Ilian Iliev > Web Software Developer > > Mobile: +359 88 66 08 400 > Website: http://ilian.i-n-i.org > > > On Mon, Mar 5, 2012 at 4:54 PM, leaks wrote: > >> I don't get an error... Nothing just happens &g

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread leaks
dd 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 wrote: > > no, no errors get displayed... Just nothing happens. > > Absolutely and literally 'nothing happens'? Really? > > Does

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread leaks
for a successful post to > actually return a redirect to > a separate success view (helps guard, I believe, against inadvertent > double submits). > > On 3/5/12, Tom Evans wrote: > > On Mon, Mar 5, 2012 at 3:24 PM, leaks wrote: > >> no, no errors get displayed...

Re: How do you use a link as a post request?

2012-03-05 Thread leaks
thanks bb6xt..! I couldn't find an answer so I went with a forms POST request... Thank you anyway... Will give it a try :) -- 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