#django

/

      • marcelozarate
        [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.
      • badbandit: Can you paste a full traceback?
      • badbandit
      • marcelozarate
        i'm afraid my server doesn't pause, and that i'm beyond windows
      • because can't install linux yet because of warranty
      • napperjabber joined the channel
      • ryanisnan
        badbandit: Check out the __unicode__ method on ProductImage. http://dpaste.com/855934/
      • Bubo has quit
      • marcelozarate
        [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.
      • superdmp has quit
      • dirn joined the channel
      • b3free has quit
      • marcelozarate
        thanks so much ryanisnan for even coding that XD but my problem is, on the windows server nothing shows up even if I put print "Hello" in my view
      • ryanisnan
        marcelozarate: No problem. Ok. So, is the problem that your edits are not saving? The object isn't being updated properly?
      • marcelozarate: Is a new object being created? What is happening?
      • marcelozarate
        Yes
      • wait a second please
      • the objects are edited
      • indeed
      • djangoobie has quit
      • i even see the updates in my list
      • but
      • when i edit i hope to have a form with the fields prepopulated, not just empty fields
      • that's what i'm trying to achieve, i do not know if i'm working out this english
      • ryanisnan
        marcelozarate: Oh, why didn't you say that :)
      • marcelozarate: This is simple.
      • marcelozarate
        sorry i thought i mention that, probably just miss-expressing myself
      • Brewster is now known as Brewster[afk]
      • ryanisnan
        marcelozarate: http://dpaste.org/0PkF0/ :)
      • 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
      • mh512
        in particular, line 109 of http://dpaste.com/856093/ Thanks!
      • sixpearls
        is it a right of passage to roll my own? or is the right of passage figuring out the compromise of using published apps
      • ?
      • mh512
        sixpearls: i would use WP
      • StationsPatient has quit
      • sixpearls
        mh512: is your template successfully loading the template tags?
      • mh512
        sixpearls: I believe so. I can print stuff in do_loadmacros()
      • sixpearls
        mh512: why use WP?
      • mh512
        sixpearls: WP works out of the box for most use-cases...
      • hell_razer has quit
      • ryanisnan has quit
      • ls3 has quit
      • ls3 joined the channel
      • rogi joined the channel
      • sixpearls
        mh512: I would like to integrate some django apps with "posts" seems like reason enough to make something in django?
      • ls3 has quit
      • nicklo has quit
      • ls3 joined the channel
      • rudedogg has quit
      • badbandit
        thank goddd it all works
      • Mashirito joined the channel
      • sixpearls
        mh512: Not sure what the exact issue is with your template tag but having code after the "return" seems odd
      • rudedogg joined the channel
      • mh512
        sixpearls: ah figured it out... apparently, putting the tag outside the block tag doesnt do the rendering...
      • StationsPatient joined the channel
      • tlab joined the channel
      • m0rpho has quit
      • missfilly has quit
      • charettes has quit
      • asbjxrn joined the channel
      • nigelb has quit
      • nigelb joined the channel
      • Megido
        who can help me attach django-admin-multiupload to admin?
      • change_form
      • zmisc joined the channel
      • ambar joined the channel
      • racycle joined the channel
      • dirn has quit
      • zmisc has left the channel
      • Brewster is now known as Brewster[afk]
      • rakl has quit
      • cramm has quit
      • nicklo joined the channel
      • zeograd has quit
      • TheZketch joined the channel
      • nacef has quit
      • mengu has quit
      • asbjxrn has quit
      • TodPunk joined the channel
      • mh512 has quit
      • tlab has quit
      • ls3 has quit
      • Mashirito has quit
      • fission6 joined the channel
      • charettes joined the channel
      • deuterium has quit
      • tWoolie has quit
      • rrjamie joined the channel
      • nicklo has quit
      • mattdevs has quit
      • charettes has quit
      • charettes joined the channel
      • missfilly joined the channel