#django

/

      • jpadilla
        is there a way to have django + selenium test different browsers for each tests?
      • oinopion has quit
      • jefcabatingan joined the channel
      • rlrosa
        FunkyBob: ok... i've been trying to debug, no luck yet. i have to close and re-open my application. i think there may be some kind of "read transaction" that is never closed (on my side). any idea how to force close?
      • mattmakai joined the channel
      • sudobangbang joined the channel
      • FunkyBob
        rlrosa: well, you'll need to start by reminding me what you're talking about :)
      • Wolfram74 joined the channel
      • Wolfram74
        which do you think is a better way to get started on django, the django docs 4 part tutorial, or the "The Django Book"?
      • Ariel_Calzada has quit
      • jpadilla has quit
      • FunkyBob
        Wolfram74: the 4-part tutorial
      • it's current
      • the "book" ... is being updated, but languished for years
      • rlrosa
        FunkyBob: :) i have an external daemon that accesses the django db to check for session id before allowing stuff. when a new client logs in his newly created session id is not visible to my daemon's queries. the mysql does show the session id, and if i restart my deamon it also find the sid
      • jefcabatingan has left the channel
      • FunkyBob: i'm looking into read transactions, may be the issue. not sure yet
      • Wolfram74
        the 4-part tutorial doesn't seem to mention anything about deployment though
      • anth0ny joined the channel
      • FunkyBob
        Wolfram74: no... that's in the main docs, though
      • however, you don't need that for an introduction
      • cellofellow joined the channel
      • mihow has quit
      • Wolfram74
        so after the tutorial, the book, or just continue to wander aimlessly through the docs? because that second approach seems like it could easily become very frustrating
      • cellofellow
        This may seem a dumb question but I'll ask anyway. Is there any prefered, or best-practices, or make-most-logical-sense place to put a virtualenvs when using virtualenvs to run a django app in production?
      • FunkyBob
        I tend to recommend reading over the contents page in the docs
      • and delving into parts that look interesting
      • randomdrake joined the channel
      • kanja
        I'm having some issues w/ gevent and postgres - I'm getting "OperationalError: FATAL:  sorry, too many clients already". I assumed I could call connection.close at places where the coroutine idles to free up connections, but it doesn't seem to help. Anyone have an idea?
      • generus has quit
      • nelso has left the channel
      • FunkyBob
        cellofellow: not really... I have a particular layout that keeps everything together...
      • djangoobie has quit
      • kanja: have you got the postgress "green" patches?
      • mito__ joined the channel
      • rudasn joined the channel
      • kanja
        FunkyBob: I'm not sure! Do you mean the monkey patches gevent comes with?
      • FunkyBob: you know, I'm not actually seeing where I even use the monkey patching
      • gremly has quit
      • could I have forgotten to actually gevent the psql driver
      • that would not be my finest moment
      • garryp_ joined the channel
      • caleb_ has quit
      • generus joined the channel
      • anth0ny has quit
      • FunkyBob
      • seagreen joined the channel
      • bulkan joined the channel
      • hyperair has quit
      • danfairs_ joined the channel
      • kanja
        FunkyBob: I knew I needed to do this, but I can't find it in my code -I think I totally forgot about it
      • dur
      • FunkyBob: I've never done this in a django project though - where would you suggest the patch go? My guess is the settings file?
      • garryp has quit
      • danfairs has quit
      • danfairs_ is now known as danfairs
      • shadowshell joined the channel
      • zadark has quit
      • ianawilson has quit
      • shadowshell
        Hello django using pythonistas!
      • milkandtang has quit
      • Once upon a time I used django on a daily basis. However for the last 3 years I've been using ruby and have lot touch with my python roots.
      • Along the way I picked up some great tools that I'm wondering if there are python counterparts for.
      • jcarbaugh has quit
      • FunkyBob
        kanja: previously I've done it in my wsgi script
      • shadowshell: sounds interesting
      • pydanny has quit
      • ovnicraft joined the channel
      • sudobangbang
        I've noticed that accessing the property of self.request.body after it's already processed throws an Exception
      • kanja
        FunkyBob: that makes sense
      • FunkyBob
        sudobangbang: and you're doing this because...?
      • sudobangbang
        is there anyway to get the request.body bytes later from somewhere else on the request object?
      • shadowshell
        guard - Guard is a command line tool to easily handle events on file system modifications. Its pretty sick and watches my files for changes, then runs a series of operations that I dictate. This includes things like running tests related to the files that just changed.
      • Something like this is a must have for my workflow as I'm test happy.
      • sudobangbang
        FunkyBob: because I'm passing JSON and i don't want to create a QueryDict that i can use with my model form
      • shadowshell
        Any good python alternates?
      • sudobangbang
        FunkyBob: because i'm passing JSON and i *want* to create a QueryDict out of it that i can pass to my model form
      • generus has quit
      • shadowshell
        FunkyBob: yeah, i need to polish up my python chops and get back in the groove round here
      • cinvoke has quit
      • FunkyBob
        sudobangbang: ...
      • sudobangbang: so don't access request.GET, request.POST or request.REQUEST
      • altipard has quit
      • altipard joined the channel
      • shadowshell
        my second goto tool is capybara. its a general purpose testing api for driving selenium and other browser tools for integration/acceptance testing web apps/apis. lettuce seems nice for the bdd side of this, and there seems to be some integration efforts with selenium. but is this the goto tool in pythonville?
      • for BBD driving webapps^
      • rudasn has quit
      • vtone has quit
      • zeograd has quit
      • altipard_ joined the channel
      • milkandtang joined the channel
      • sudobangbang
        FunkyBob: ahh, i see how that triggers everything. Now i wonder how i can conver my JSON into something that works well with QueryDict(s) and ModelForms....thanks
      • FunkyBob
        shadowshell: I've used "behave" or BDD... it's very nice
      • jjmalina has quit
      • shadowshell: why do you want QueryDicts?
      • shadowshell
        FunkyBob: behave, will check it. ty.
      • dmclain has quit
      • vtone joined the channel
      • FunkyBob
        shadowshell: doesn't hurt that one of the devs is a friend of mine :P
      • shadowshell
        FunkyBob: any efforts for integration with selenium or some headless browser tools like phantomjs or headless-webkit that you know of?
      • FunkyBob
        we've been toying with phantomjs...
      • I don't know where that's gone ... others on the team, yadda yadda
      • altipard has quit
      • mito__ has quit
      • shadowshell
        FunkyBob: gotcha, well thanks for the hint.
      • sudobangbang
        FunkyBob: because instead of writing separate validation for JSON-to-Model POST(s) i'd like to use the already existing ModelForms. So the thinking is if i can convert my JSON into a QueryDict
      • that looks like the QueryDict from a html form POST
      • FunkyBob
        sudobangbang: ah... you don't need to
      • sudobangbang: just pass a plain dict
      • rudasn joined the channel
      • sudobangbang
        FunkyBob: let me try that
      • hop has quit
      • hop joined the channel
      • garryp joined the channel
      • jjmalina joined the channel
      • kanja
        FunkyBob: alright I patched psql - fingers crossed. Thanks for your help!
      • bulkan
        for a modeladmin i added a new field for its form just to display some data that is generated on the fly and isn't needed to be saved to the db
      • dirigeant
        shadowshell, you can use inotify to follow fs events on linux. and there is python library for it, pyinotify
      • bulkan
        but when i click save it tries to save the field but obviously can't find it
      • do i handle this on the model admin form ?
      • johnraz has quit
      • garryp_ has quit
      • FunkyBob
        kanja: no problem... I have a bunch of sites using gunicorn/gevent and psycogreen
      • mito__ joined the channel
      • Leeds joined the channel
      • KrauserIII joined the channel
      • altipard_ has quit
      • vdboor has quit
      • altipard joined the channel
      • kanja
        FunkyBob: I want to get into it more - it seems so powerful
      • garryp_ joined the channel
      • demet8 joined the channel
      • FunkyBob: I just don't do enough that needs the power
      • this time is websockets
      • FunkyBob
        power?
      • ah, well
      • kanja
        yeah I mean I just don't need it that often
      • FunkyBob
        I use it for low memory footprint :)
      • kanja
        huh
      • huh!
      • that would actually be helpful
      • FunkyBob
        however, we've a large site that'll be using it for SSE
      • kanja
        is there a way to get stack traces while using it?
      • onthestairs has quit
      • SSE?
      • FunkyBob
        Server Sent Events
      • kanja
        ah yeah
      • yeah it's a pretty perfect case for that
      • rudasn has quit
      • EyePulp has quit