Re: Views, Forms not working.

2013-07-02 Thread Nigel Legg
Nick - I removed some irrelevant stuff earlier, and removed those tags by mistake. Cheers, N// Regards, Nigel Legg 07914 740972 http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 1 July 2013 22:20, Nick Dokos wrote: > Nigel Legg writes: > > > template datatab

Re: Views, Forms not working.

2013-07-01 Thread Nick Dokos
Nigel Legg writes: > template datatables.html: > > > >     Make Tables > >     >     enctype="multipart/formdata">{% csrf_token %} >     >

Re: Views, Forms not working.

2013-07-01 Thread Nigel Legg
Ah yes, thank you. Regards, Nigel Legg 07914 740972 http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 1 July 2013 15:53, Mário Idival wrote: > Oh, but the url 'list'? remove the url 'list' of actions in forms > > > 2013/7/1 Nigel Legg > >> Tried that, still going back to th

Re: Views, Forms not working.

2013-07-01 Thread Mário Idival
Oh, but the url 'list'? remove the url 'list' of actions in forms 2013/7/1 Nigel Legg > Tried that, still going back to the index page. > > Regards, > Nigel Legg > 07914 740972 > http://twitter.com/nigellegg > http://uk.linkedin.com/in/nigellegg > > > > On 1 July 2013 15:33, Mário Idival wrote

Re: Views, Forms not working.

2013-07-01 Thread Nigel Legg
Tried that, still going back to the index page. Regards, Nigel Legg 07914 740972 http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 1 July 2013 15:33, Mário Idival wrote: > """ > form.is_valid(): > model_instance.save() > > """ > > form.is_valid(): > form.save

Re: Views, Forms not working.

2013-07-01 Thread Mário Idival
""" form.is_valid(): model_instance.save() """ form.is_valid(): form.save() 2013/7/1 Nigel Legg > So I have: > views.py: > def datatables(request): > if request.method == 'POST': > form = DataTableForm(request.POST) > if form.is_valid(): > mod

Views, Forms not working.

2013-07-01 Thread Nigel Legg
So I have: views.py: def datatables(request): if request.method == 'POST': form = DataTableForm(request.POST) if form.is_valid(): model_instance.save() return redirect('myapp/tabspec.html') else: form = DataTableForm() return render(reques