#django

/

      • eltigre
        also it's a bit complicated for a development setup
      • superdmp has quit
      • sgnb has quit
      • later this year I want to investigate how much of django is compatible with dieselweb
      • cyberdelia joined the channel
      • as far as I understand it, too to their greenlets, it might be possible to just write a different non-blocking database backend, and most django applications would work asynchronously, including websockets etc
      • nicklo joined the channel
      • request processing would have to be rewritten a little, probably
      • scrapper joined the channel
      • superdmp joined the channel
      • johnraz joined the channel
      • new new years resolutions anyhwo
      • just as writing a git-based cms and starting two blogs with it
      • I was amazed to discover that git is actually a very nice nosql database...
      • johnraz has quit
      • hoot joined the channel
      • johnraz joined the channel
      • figabo has quit
      • phildini joined the channel
      • robbyoconnor joined the channel
      • kilae has quit
      • FunkyBob
        eltigre: nonrel, you mean?
      • Beeton
        I'm having trouble updating my database after adding a new field to my UserProfile. I've run manage.py syncdb but nothing is changing in the database. I can't find much in the docs about UserProfile - any pointers?
      • BeliSK
        eltigre, how do you interface with git? is there an API? for python maybe?
      • FunkyBob
        Beeton: syncdb will NEVER alter an existing table
      • crazedpsyc
        Beeton: syncdb does not touch existing tables.
      • johnraz has quit
      • FunkyBob
        Beeton: it only creates missing tables
      • crazedpsyc
        yeah, lag. <3
      • Beeton
        oh ok. So how should I add a new column?
      • crazedpsyc
        use something like south for migrations if you want a good solution
      • jdunck joined the channel
      • eltigre
        BeliSK, yes there is gitpython
      • crazedpsyc
        or, you could just use the SQL shell.
      • FunkyBob
        Beeton: either drop the table so syncdb will recreate it, manually issue an ALTER TABLE statemtnt to the DB
      • or use something like South
      • BeliSK
        eltigre, thanx, i'll check it out
      • eltigre
        gitpython can interface with a python-written gitdb api or through calling/piping the git binary
      • Beeton
        ok thanks
      • eltigre
        john resig just published secrets of the javascript ninja http://www.amazon.com/dp/193398869X/
      • kojiro
        Hmm. I guess he has to die now.
      • </weird_ninja_joke>
      • rocky has quit
      • FunkyBob
        heh
      • Zapwai joined the channel
      • asbjxrn joined the channel
      • Scottyob joined the channel
      • phantomcircuit
        hmm
      • django auth password reset emails all say example.com
      • what setting do i need to change to fix that?
      • eltigre
        When Chuck Norris uses gentoo and commands "emerge kde" it only takes one minute, because even a computer can't afford to make Chuck Norris wait that long
      • rakl has quit
      • FunkyBob
        phantomcircuit: fix your Site
      • eltigre
        in the admin
      • phantomcircuit
        FunkyBob, i was trying to figure out how but i cant seem to find it in the settings
      • eltigre
        phantomcircuit, it's in the admin
      • there's a model called Site
      • rocky joined the channel
      • phantomcircuit
        AH
      • thanks
      • Beeton
        so I've created a migration with South and applied it, but it doesn't seem to want to use the default value I have for an IntegerField (defined as models.IntegerField(default=0, null=False))
      • in the database (MySQL) it has null as the default
      • missfilly joined the channel
      • missfilly has quit
      • missfilly joined the channel
      • endra joined the channel
      • mattmcc
        The default value of a model field doesn't translate to a DB column's default value.
      • It can't, because a model field default could be a callable value.
      • dirn joined the channel
      • Of course, that doesn't stop you from going back and explicitly setting that default on your DB column.
      • Beeton
        oh ok. So I should just use Django's behaviour to supply the desired default value to the database?
      • mattmcc
        That's how Django does it. If you have other tools writing to the DB, you would want the DB to have default 0 too.
      • eltigre
        from my understanding of south, it should have set all existing row's value in this column to 0 anyway
      • bmonty has quit
      • hoot has quit
      • Beeton
        yeah it appears to have done that. Thanks for the info
      • easypi has quit
      • danske has quit
      • anth0ny_ has quit
      • missfilly has quit
      • colde has left the channel
      • rocky has quit
      • cyberdelia has quit
      • rocky joined the channel
      • joshfinnie has quit
      • eltigre
        another on-disk "nosql-lite" is pytables
      • dirn has quit
      • joshfinnie joined the channel
      • dirn joined the channel
      • FunkyBob
        eltigre: is it NoSQL as in "follows the original NoSQL project, providing a relation DBMS not using SQL"
      • eltigre: or is it "NoSQL" as in "we were too fucking stupid to realise SQL != relationa, so we stole that name instead of NonRel"?
      • eltigre
        yeah
      • I mean nonrel
      • but I pronounce it nosql because it's stuck in my head
      • kanja has quit
      • you might call mysql and postgresql no-javascript databases actually ^ ^
      • nicklo has quit
      • FunkyBob
        well, PG supports JSON data types...
      • and I'm quite sure there's a PL/javascript module
      • mattmcc
        And JS procedural functions.. :)
      • sudobangbang has quit
      • BeliSK has quit
      • eltigre
        ah hm... I know too little of postgres I have to admit
      • it seems to be much more capable than one might think having used ORMs too much
      • FunkyBob
        aye
      • some of us toy with the idea of writing a PG-sepcific ORM
      • for instance, since PG supports ARRAY types and ROW types.. and ARRAYS of ROWS... you could implement select_related far more efficiently
      • ah, bollocks!
      • damn View
      • eltigre has quit
      • superdmp has quit
      • superdmp joined the channel
      • dirn has quit
      • so, is everyone here in 2013 yet?
      • PKKid2 joined the channel
      • meithras joined the channel
      • figabo joined the channel
      • superdmp has quit
      • leo2007 has quit
      • rogi has quit
      • meithras has quit
      • Scottyob has quit
      • Scottyob joined the channel
      • josefig has quit
      • Scottyob has quit
      • Scottyob joined the channel
      • mattmcc
        The US is still waiting. Behind the curve, as usual.
      • Scottyob_ joined the channel
      • m0n5t3r has quit
      • Scottyob has quit
      • Scottyob_ is now known as Scottyob
      • FunkyBob
        very odd... am getting HttpResponseNotAllowed on a DELETE call...
      • foundatron has quit
      • SmileyChris
        FunkyBob: why is that odd?
      • bmonty joined the channel
      • FunkyBob
        SmileyChris: is my brain fading, and delete isn't permitted by default?
      • SmileyChris
        FunkyBob: did you provide a delete method?
      • FunkyBob
        it's not a CBV
      • SmileyChris
        i read "damn View", i assume cbv
      • FunkyBob
        yes, and you did so accurately
      • then I removed View
      • since I didn't want to add a dummy "delete" method just to work around that
      • SmileyChris
        so what are you doing?
      • punkrawkR has quit
      • FunkyBob
        just a tick
      • anyway... gotta go shopping
      • mattmcc
        FunkyBob: On the subject of arrays.. https://gist.github.com/4424662
      • FunkyBob
        also, include doesn't like tuples, only lists
      • hyperair has quit