[ryanisnan] i'm afraid i have to ask how do i do that?
sorry my noobism'
attached that i'm not so good with english
ryanisnan
marcelozarate: Don't apologize - it's unnecessary. Try putting `import pdb; pdb.set_trace()` right after you define `tarea`
badbandit
ryanisnan: I get this "
coercing to Unicode: need string or buffer, ImageFieldFile found"
marcelozarate
wtf?
jSanp has quit
ryanisnan
When you revisit that view, your server should pause and the python debugger should take over your terminal. In there, you can play around, and see what `tarea` has.
marcelozarate: To break out of it, just press CTRL+D.
[ryanisnan] i added those lines but nothing happened
ryanisnan
marcelozarate: Hm. You should be able to get PDB installed on windows, but, provided you can't… and assuming you can see output in your server's terminal, perhaps print out some features of `tarea` just after you instantiate it.
marcelozarate: You were only pulling the task with the given ID in the scenario where the user is making a POST request. When they have made another request (presumably GET), the task was not passed to the form, so it did not have it's initial data.
badbandit
ryanisnan: Do you think the error is because when I am creating a new ProductImage, the product field has not been saved yet, so it doesnt know what instance.product is? If so any ideas?
Rile has quit
nicklo has quit
marcelozarate
I started my begging with "I have a silly question I think", and indeed it was. Thanks so much ryanisnan ! I should work a little harder in how to express myself when asking for help. Thanks a lot ryanisnan
ryanisnan
marcelozarate: Hehe, don't mention it :) Good luck!
Cromulent joined the channel
marcelozarate has quit
badbandit: Did you see my paste above?
badbandit: I'm fairly certain the error you were having is because you were trying to coerce an ImageField to a unicode string. I've updated the __unicode__ method on your ProductImage model. http://dpaste.com/855934/
deuterium joined the channel
nvandijk has quit
zatan has quit
deuterium has quit
deuterium joined the channel
rudedogg has quit
sixpearls has quit
rudedogg joined the channel
endra joined the channel
ls3 joined the channel
nicklo joined the channel
jaboles has quit
m8 has quit
lyrae has quit
ovnicraft joined the channel
racycle has quit
Brewster[afk] is now known as Brewster
tWoolie joined the channel
katsh joined the channel
katsh has quit
amolinari joined the channel
katsh joined the channel
katsh has quit
amolinari has quit
TodPunk has quit
randomdrake joined the channel
randomdrake
Good evening. Is there a way to filter objects based on them having a child object in the DB? Like a LEFT JOIN someobject WHERE someobject.id IS NOT NULL type behavior?
kristallpirat joined the channel
sixpearls joined the channel
rogi has quit
mh512 joined the channel
StationsPatient joined the channel
kristallpirat has quit
endra has quit
Cromulent has quit
mh512
Hi, I have a custom template tag, but I don't know why the render() function in the Node is not being called.
sixpearls
Hi, I'm "new" to django (18 months+ researching and dev server playing, nothing real deployed) and I'm trying to get myself oriented and transfer a WP blog-- I like having (database based) media manger, menu, generic + heirarchical taxonomy, and a light CMS