is there a method to compare two instances of a model, but to compare the values of every field that isn't the primary key?
i.e. every key that isn't 'id'
err, not key. field. every field that isn't 'id'
BurN3D
hi guys, im looking for some assistance i've been trying a few thing and nothing seem to work , all i want is when a user edit a job, if theres a new image1 in the form i want to take the old one and delete it on cloudinary but this method doesnt work and im not sure why , any idea> heres the pastebin : https://dpaste.de/AQiC
FunkyBob
CrowX-: no, but in 1.8 it'd be mostly easy for all scalar fields, using _meta
natea has quit
solomonix joined the channel
garrypolley has quit
linkedinyou
my site-packages present in lib64/python2.7 and i see my compiler is using the lib/python2.7/site-packages what i do please as i am using opensuse
grindmodeon has quit
FunkyBob
what compiler, linkedinyou ?
linkedinyou: are you using virtualenv, btw?
linkedinyou
yes
FunkyBob
wow... way to ignore half my questions...
linkedinyou
i try to runserver it give me issue
FunkyBob
what issue?
CrowX-
if I have an object TheObject created by using a form's ObjectForm.save(commit=False), how can I search if an identical object exists in the database? would ModelName.objects.get(TheObject) work?
keimlink has quit
Knyght
No
linkedinyou
importerror no module
CrowX-
how can I then?
FunkyBob
CrowX-: actually, a Form will create the model instance at instanciation, fi you don't pass one
CrowX-
other than listing every field name
linkedinyou
no module named hashcompat
Knyght
a very long filter, maybe. depends on your model
FunkyBob
linkedinyou: please read the topic
linkedinyou: which version of Django are you using? which version of Python are you using?
primepie joined the channel
linkedinyou: FULL TRACEBACK OR WE CAN'T HELP YHOU
linkedinyou
i upgraded from 1,5.1 to 1.6.7
CrowX-
FunkyBob, how can I check if identical object exists in the db?
linkedinyou
python2.7.8
primepie
I just started using aws RDS with multi-az.. I am wondering in case of failover, would django reestbalish connection when an instance dies, and pickup the next one (dns failover)
FunkyBob
CrowX-: do a get() testing all the fields you deem constitute "identical"
linkedinyou
i upgraded from 1,5.1 to 1.6.7 django
FunkyBob
primepie: very likely...
linkedinyou: you said that
kenbolton joined the channel
primepie
FunkyBob: cool that's what I thought
cjflory has quit
FunkyBob
primepie: if you haven't enabled persistent connections, Django will just try to make a connection
if you have, it will find it's failed... and try to reconnect [or 500 that page, and treat the conection as closed]
linkedinyou: make line 5 request.user.player_id unless you want it to fetch the player record
linkedinyou
FunkyBob ok i will thank you
dcrouch joined the channel
FunkyBob
oops, that was for limbera
linkedinyou: did you dpaste those details?
linkedinyou
no worries
no
i thought line five in manage.py
limbera
will do FunkyBob
Spr0cket has quit
FunkyBob
limbera: go through each line of code... every time there's a branch -- make sure you pass good/bad/ugly cases
limbera: every time there's reliance on a value... good/bad/ugly...
every time there's an expected outcome... test that assumption
maryokhin has quit
Spr0cket joined the channel
MrBaboon has quit
Jikan has quit
eroussel joined the channel
Jikan joined the channel
maryokhin joined the channel
eka joined the channel
grindmodeon joined the channel
zampano has quit
grindmodeon has quit
limbera
thank you
linkedinyou
limbera: your welcome
zampano joined the channel
sturm has quit
cjflory joined the channel
avatarez joined the channel
Vendella has quit
montefuscolo has quit
avatarez has quit
avatarez joined the channel
sonofdirt joined the channel
eka has quit
craigbennett has quit
eka joined the channel
CrowX- has quit
Lipp joined the channel
sbogg has quit
eka has quit
ybathia has quit
garrypolley joined the channel
craigbennett joined the channel
tudmotu has quit
jMyles has quit
fission6 has quit
Lipp has quit
craigbennett has quit
garrypolley has quit
sonofdirt has quit
cnk has quit
limbera
hey FunkyBob in your experience how much would it cost to hire a good django developer in melbourne?
just a ballpark estimate
OtherAllan has quit
lacrymology has quit
FunkyBob
how much are you offering me? :)
capella-da-star joined the channel
avatarez has quit
eroussel has quit
ValicekB has quit
dray3 joined the channel
avatarez joined the channel
buzzzz
limbera: I'll do it for half the rate of FunkyBob, but it will take me at least four times as long :p
ValicekB joined the channel
migbot has quit
jMyles joined the channel
maryokhin has quit
capella-da-star has quit
avatarez has quit
jessamynsmith joined the channel
jtri joined the channel
jtri
hello, what is the best way to load test a django app? ultimatly I'll be building out the REST API and service endpoints, but I'd like to stress test the server code early