List Info

Thread: save sometime cause duplicate data




save sometime cause duplicate data
user name
2007-12-21 02:06:03
I start only one post request,but the db save two duplicate
data in
sometimes.
this just occur sometime,why?

I used nginx(use multiple upsteam)+flup+facgi to deloy my
django
application
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: save sometime cause duplicate data
country flaguser name
United States
2007-12-30 12:51:58
leopaygmail.com wrote:
> I start only one post request,but the db save two
duplicate data in
> sometimes.
> this just occur sometime,why?
>   

How are you trying to save the data? The admin interface?
your own code?
If it is your own code, please paste an example so we can
look at the
problem. Also, describe exactly what it is that you do when
you get the
duplicates.

One solution is to change your model in such a way that it
will only
accept unique records. That way, it would work on the first
attempt, but
it won't stick the duplicate in.

Thanks!

Jeff Anderson

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )