Harjot,
In your code, inside the is_valid() loop, you have a line that states:
return render_to_response('tcc/trans.html', dict(data.\
items()+tmp.items()),context_instance=RequestContext(request))
This needs to be a re-direct. You are currently resending it to the form.
If you look at the exam
On Sun, Sep 8, 2013 at 7:07 PM, Babatunde Akinyanmi
wrote:
> All these questions are best answered with a separate thread for each.
Please answer my questions. I want to solve all these problems. I am
not getting anything that what should I do first. Please someone help
me. :(
--
Harjot Kaur
On Sun, Sep 8, 2013 at 3:49 AM, Harjot Mann wrote:
> On Wed, Sep 4, 2013 at 2:17 PM, Babatunde Akinyanmi
> wrote:
> > This is usually a side effect of not doing a redirect from the view
> > that handles your submitted form.
>
>
> How can I do it? I mean sometimes if there I fill the form again fo
On Sun, Sep 8, 2013 at 2:19 PM, Laurent Meunier wrote:
> Harjot is right, you are not doing a redirect after you create your object.
> Since the browser is not redirected, if you refresh the page the browser
> send an other POST (and a new object is created).
> If you redirect after a POST, the br
On 08/09/2013 04:40, Harjot Mann wrote:
On Wed, Sep 4, 2013 at 10:42 AM, Laurent Meunier wrote:
Can you show use the source code of the view where you create your entry in
the database?
Sure. Here is the link to code:
http://tny.cz/09090f4c
Thanks for the link.
Harjot is right, you are n
On Wed, Sep 4, 2013 at 2:17 PM, Babatunde Akinyanmi
wrote:
> This is usually a side effect of not doing a redirect from the view
> that handles your submitted form.
How can I do it? I mean sometimes if there I fill the form again for
same job no. It accepts the value on submitting. Why it is not
On Wed, Sep 4, 2013 at 10:42 AM, Laurent Meunier wrote:
> Can you show use the source code of the view where you create your entry in
> the database?
Sure. Here is the link to code:
http://tny.cz/09090f4c
--
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
Daily Dairy: http://harjotmann
This is usually a side effect of not doing a redirect from the view
that handles your submitted form.
Sent from my Windows Phone
From: Harjot Mann
Sent: 9/4/2013 5:31 AM
To: django-users@googlegroups.com
Subject: duplicate entry in django
In my app whenever the page is refreshed, the double entry
On 04/09/2013 06:31, Harjot Mann wrote:
In my app whenever the page is refreshed, the double entry is done in
database. I have faced this many times. What should I do to prevent
the multiple entries in database?
Hi,
Can you show use the source code of the view where you create your entry
in
In my app whenever the page is refreshed, the double entry is done in
database. I have faced this many times. What should I do to prevent
the multiple entries in database?
--
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
Daily Dairy: http://harjotmann.wordpress.com/daily-diary/
--
You
10 matches
Mail list logo