#django

/

      • velcrow
        danfairs, overall, do you think going with aws to start is alright?
      • danfairs
        It'll work, and loads of people use it - the learning curve is steeper than some others though.
      • What does your app look like? Is it a simple Django web site, or is there more to it than that?
      • velcrow: In particular, do you need to run custom services etc?
      • velcrow
        Simple website
      • ldf85 joined the channel
      • No custom services
      • danfairs
        Right, so if you're trying to keep it simple to start with then something like Heroku's plan might be the best - if you don't want to get involved in configuring web servers etc.
      • velcrow
        danfairs, I see, ok, ill look into it again
      • danfairs
        They are more expensive than AWS, for sure, but factor in the amount of time it'll take you to get everything set up on AWS.
      • I think there's a free tier on Heroku - that might be good enough to start with, at least?
      • MrDaneelOlivaw
        sorry everyone i know you missed me buy i was away
      • s/buy/but
      • velcrow
        danfairs, I heard there are problems on heroku with django though
      • ill need to investigate mor
      • Milossh joined the channel
      • doubt
        hi guys, any suggestion the way to iterate
      • empty has quit
      • doubt has quit
      • Sharebear joined the channel
      • ice_ebbs has quit
      • uffs joined the channel
      • uffs
        hi
      • i am developing something with django and postgres
      • quite often i come across this
      • InternalError: current transaction is aborted, commands ignored until end of transaction block
      • seb___ joined the channel
      • MrDaneelOlivaw
        i come across that too in development shells
      • uffs: i usually just exit the shell, i would also like to know how to prevent it or to close the transaction
      • uffs
        hmm
      • i often see it in shells too
      • but not only in shells
      • which bothers me because i know it means something went wrong with postgres
      • but it's hard to debug
      • markekramer has quit
      • markekramer joined the channel
      • wrapping problematic function in @transaction.commit_manually kind of works to me, but i guess it's only treating the symptomes
      • markekramer has quit
      • besides having a major drawback of me having to put try: ... except Exception block there
      • obscuring any other error that may occur in that chunk of code
      • i would think there is some common explanation to those errors
      • danfairs
        uffs: Usually it means that something went wrong at the postgres level (eg. an integrity error) and the connection's transaction wasn't rolled back.
      • uffs: It *probably* points to a bug in your app
      • Have a look at the postgres server log, and see if there are any clues in there.
      • MrDaneelOlivaw
        yes i only get that when messying around on the shell
      • sorry didn't see your reply up
      • eka joined the channel
      • dump joined the channel
      • b0bbi10 has quit
      • kizzo joined the channel
      • RThinker has quit
      • kenbolton has quit
      • zenoamaro has quit
      • AmberJ joined the channel
      • akama has quit
      • Titanomachy joined the channel
      • MartinBrugnara joined the channel
      • natea joined the channel
      • daniel_aus_wa has quit
      • MartinBrugnara
        hi! I got a questoin..: it's possible to filter in Count() on *_set ?
      • (m2m)
      • kveroneau joined the channel
      • logix812 has quit
      • AmberJ has quit
      • kenbolton joined the channel
      • karim joined the channel
      • karim
        hi
      • I've got a little problem with the formwizard : I'd like it to remember the data the user has entered for the current step even if the user has went back to the previous step
      • is this doable ?
      • bojo__ has quit
      • akama joined the channel
      • bojo__ joined the channel
      • yassine joined the channel
      • ldf85 has left the channel
      • logix812 joined the channel
      • LysergicDreams joined the channel
      • jeffisabelle has quit
      • kizzo has quit
      • Cyph0n joined the channel
      • hyperair has quit
      • kenbolton has quit
      • MartinBrugnara has quit
      • nonce_ joined the channel
      • nonce_ has quit
      • Ariel_Calzada has quit
      • clime has quit
      • dust-otc joined the channel
      • Spades_ joined the channel
      • NBhosting joined the channel
      • NBhosting
        hi all, just testing my irc on my mac, works good right?
      • yassine
        NBhosting: looks even maccy :)
      • NBhosting
        haha :D
      • yassine
        i have a custom primary key field https://gist.github.com/atlasloewenherz/bd05f97... which try to generate ids via the AutoField, this seems to be half working: 1 i can create dummy models containing my custom field, but the value of the key in the database is not the one i want for example when listing my models i get the key showing as : 2013-1, 2013-2.... but in the db/table/id the values are just 1,2,3...
      • SpoutBE joined the channel
      • jeffisabelle joined the channel
      • NBhosting
        Im Gerd from the Netherlands, php programmer ditching pph and going for python/django :D i hope i dont bug you guys to much with my newbee stuff haha :D
      • whysosrs joined the channel
      • mathlete_ joined the channel
      • yassine
        Hi Gerd/ NBhosting congrats for choosing the blue pill :)
      • Spades_
        Hi, I am using the django rest framework and the DRF any permissions library. However, the any permissions library isnt' working. I basically copy pasted from their docs but it is not giving permission.
      • whysosrs
        I need to represent a typical "category tree" structure where the leaf nodes could each have multiple parents. It seems a graph datatbase like Neo4j is a good way to do that. On top of this I also have to handle users, but neo4django doesn't have support for user permissions, so it seems I'll have to use another database for that - but neo4django doesn't have proper support for doing that.
      • I'm basically in between a rock and a hard place. Has anyone got any tips?
      • mathlete has quit
      • nonce_ joined the channel
      • gremmie joined the channel
      • empty joined the channel
      • empty has quit
      • Hollinski joined the channel
      • maxxlapointe joined the channel
      • jenia_ joined the channel
      • jenia_
        hello everyone
      • natea has quit
      • i created a virtualenv when i need to use libjpeg-dev
      • batisteo joined the channel
      • i install libjpeg-dev into the operating system
      • how do i make it availlable in the virtual env
      • ?
      • moneydouble joined the channel
      • somejedi joined the channel
      • dodobas
        jenia_: you should use a python module that exposed libjpeg library
      • natea joined the channel
      • jenia_
        i dont get it
      • AmberJ joined the channel
      • moneydouble
        Hey guys, I need some advice on building a feature for a django website. So basically, its a plugins system. I will create numerous plugins for an application. So think of it like an iPhone and the app store. Just like that, I'm creating apps/plugins for the website. It gives it additional functionality. Any tips on going about doing something like this?
      • mayhew
        libjpeg a C library, if you want to work with images in Python you should get Pillow
      • kveroneau
        Pillow shading is frowned upon in the art community...
      • empty joined the channel
      • jenia_
        IOError at /admin/shop/product/
      • decoder jpeg not available
      • home/jenia/Documents/sergey/01proj/local/lib/python2.7/site-packages/PIL/Image.py in _getdecoder, line 385
      • this is what i get
      • mayhew
        did you re-install PIL in the virtualenv after installing libjpeg-dev?
      • gremmie
        jenia_, if you aren't a purist, just put a symlink in your virtualenv's site-packages to your system PIL. Otherwise you'll have to build PIL from source in your venv
      • vbabiy has quit
      • jenia_
        okay thanks so much
      • this this:
      • sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib/
      • gremmie
        jenia_, in my venv's lib/python2.7/site-packages I have a symlink: PIL -> /usr/lib/python2.7/dist-packages/PIL
      • jenia_, that's on Ubuntu, your paths may vary, etc
      • NBhosting
        isnt it easyer to just install it with pip/easy_install
      • in your env?
      • gremmie
        NBhosting, have you tried it? :)
      • NBhosting
        not with that one, but i do with others
      • mpg300 has quit
      • AmberJ has quit
      • gremmie
        you need a lot of dependencies and it isn't obvious what they all are
      • NBhosting
        ah k, so thats why :D
      • gremmie
        it can be done sure
      • PIL relies on a bunch of C libraries
      • NBhosting
        so u guys install the bigger once system wide to avoid glogging the env