Re: How to confirm a successfull/failed database insert call to the user

2009-10-14 Thread Hector Garcia
Alternately, if you are working with anonymous users you can use anonymous sessions to get the same effect: http://docs.djangoproject.com/en/dev/topics/http/sessions/ Hector Garcia - Web developer, musician http://nomadblue.com/ On Tue, Oct 13, 2009 at 11:03 PM, Sonal Breed wrote: > > Thanks

Re: How to confirm a successfull/failed database insert call to the user

2009-10-13 Thread Sonal Breed
Thanks a lot Mihail :-) Really appreciate it. Thanks, Sincerely, Sonal. On Oct 13, 1:53 pm, Михаил Лукин wrote: > First of all, you don't need to check request.method == 'POST' twice; you > don't need to check action here. > Finally, you can use user messages to add and display confirmations: >

Re: How to confirm a successfull/failed database insert call to the user

2009-10-13 Thread Михаил Лукин
First of all, you don't need to check request.method == 'POST' twice; you don't need to check action here. Finally, you can use user messages to add and display confirmations: in view: http://docs.djangoproject.com/en/dev/topics/auth/#messages Put messages in base template and you can see them eve

How to confirm a successfull/failed database insert call to the user

2009-10-13 Thread Sonal Breed
Hi all, I need to show a confirm message when the data is saves successfully in the database. My view function snippet is as following: def itemSave(request, id=None, d={}): if request.method == "POST": if request.method == "POST" and form.is_valid(): if action == 'Save