#django

/

      • bulkan
        I have a custom pelikan template
      • named cielo
      • to see it in action
      • pilgo has quit
      • dirn joined the channel
      • Baylink has quit
      • FarmKing has quit
      • JainAmber has quit
      • twoolie joined the channel
      • jordanmessina joined the channel
      • regiov
        hi all. is there anyone using the django-treebeard admin interface for a model? (i.e. TreeAdmin) I'm using it for the first time, and I just wanted to confirm if adding new records through the admin really requires manually typing the tree-related fields, which could preferably be hidden to users. Thanks in advance.
      • FunkyBob
        regiov: yeah, that does sound wrong
      • regiov
        hi FunkyBob, so that's how it is now, right? I just wanted to confirm, in case I missed any configuration
      • FunkyBob
        I don't know... I've not looked at treebeard in years
      • JainAmber joined the channel
      • regiov
        ok. it seems to be active again, and I'm trying the latest code.
      • iqualfragile_ has quit
      • natea joined the channel
      • sachinag has quit
      • hyperair has quit
      • radac joined the channel
      • sgambino has quit
      • theboos has quit
      • Technodrome has quit
      • explodes has quit
      • natea has quit
      • Aster
        Ìû
      • jarshwah joined the channel
      • FunkyBob
        well, that's one way to put it
      • JainAmber has quit
      • sachinag joined the channel
      • zandauxzan joined the channel
      • cro has quit
      • aberrant joined the channel
      • cro joined the channel
      • Technodrome joined the channel
      • jaddison joined the channel
      • iqualfragile joined the channel
      • Aster
        Ìû
      • jaddison has quit
      • jaddison joined the channel
      • sserrano44 joined the channel
      • sserrano44 has quit
      • Brynjolf joined the channel
      • Laybunz has quit
      • InvidFlower has quit
      • cewing has quit
      • hwrd|work has quit
      • BiskitB0y joined the channel
      • iqualfragile_ joined the channel
      • iqualfragile_ has quit
      • iqualfragile has quit
      • Luyt_ joined the channel
      • digismack joined the channel
      • Luyt has quit
      • Siecje has quit
      • regiov has left the channel
      • Leeds joined the channel
      • dali has quit
      • the_lord joined the channel
      • dali joined the channel
      • tomkinsc has quit
      • dray3 joined the channel
      • glitch273 joined the channel
      • glitch273
        join #python
      • rydgel has quit
      • fmcgeough has quit
      • jchamberlain has quit
      • zerick has quit
      • the_lord has quit
      • jaddison has quit
      • BiskitB0y has quit
      • KingdomSprite
        Has anyone here used Haystack with elasticsearch? I'm not quite sure why my setup is not working. I am using the free tier on Heroku from bonsai.io and the url it provides is a connection URL with a user, password, and host. Should I be using that as my connection url?
      • jaddison joined the channel
      • in the URL
      • CollinAnderson has quit
      • JainAmber joined the channel
      • unless Heroku Bonsai only allows connections from a specific host.
      • fandikurnia01 has quit
      • That may be it.
      • atula has quit
      • aah joined the channel
      • jordanmessina has quit
      • DesmondC joined the channel
      • Laybunz joined the channel
      • foundatron has quit
      • zipper has quit
      • digismack has quit
      • syst3ml00t joined the channel
      • radac has quit
      • dirn has quit
      • H25 has quit
      • sepeth has quit
      • sepeth joined the channel
      • jaddison has quit
      • al1o joined the channel
      • al1o
        uwsgi randomly stops working on my server. It blows up CPU and Memory usage to 100%. If I restart the service, it works again smoothly. Pretty annoying. Anyone had similar experiences? Anyone happy with UWSGI?
      • schinckel
        I'm using CBV (specifically UpdateView), and overriding form_[in]valid to add to messages. However, the message is not displayed in the response, either success or failure. The message _does_ appear if I then reload the page. Any ideas?
      • nedbat has quit
      • urth
        al1o: probably something wrong in your code
      • knite joined the channel
      • al1o: enable memory_report to see which request blows up uwsgi
      • al1o
        thats a good idea. Will search for that option
      • luyikei__ joined the channel
      • hyperair joined the channel
      • calvinx joined the channel
      • k_sze[work] joined the channel
      • pilgo joined the channel
      • will it write to standard log file?
      • urth
        the uwsgi logfile, it adds the memory report on each request
      • aberrant has quit
      • schinckel
        Never mind: I'm a retard. I was doing an ajax request, that didn't have that part of the template...
      • urth
        al1o: when it breaks down again you should look for a request where the allocated memory increases by a large amount
      • radac joined the channel
      • moneydouble joined the channel
      • joshua_jandyco has quit
      • moneydouble
        Hey, how can I login two users at once?
      • Nervosa joined the channel
      • jordanmessina joined the channel
      • dlam has quit
      • tomkinsc joined the channel
      • Nervosa
        Is there any django functionality used in the backend to strip SQL injections and such that I can use? I'm wanting to sanitize an order_by GET for a raw query... But yeah, it's not something as simply parsed like a date
      • FunkyBob
        Nervosa: depends on the backend
      • twoolie
        moneydouble: explain?
      • Nervosa
        Well, we need to allow for postgres or MySQL
      • FunkyBob
        Nervosa: however, even with a raw query if you use cursor.execute correctly, it's all handled for you
      • Nervosa
        It's a model based .raw()
      • FunkyBob
        Nervosa: that is cursor.execute(query_with_placeholders, [arguments, for, places])
      • moneydouble
        twoolie: I have two types of users. One is a manager like admin sorta and the other is their customer/client. Inside admin/manager they can edit the way their website looks and for them to see how it looks, they have to logout and login as a client.
      • FunkyBob
        Manager.raw(raw_query, params=None, translations=None)¶
      • Nervosa: same deal applies
      • Nervosa: the Python DB-API2 spec pushes the work of escaping [which is DBMS specific] onto the DBMS specificdriver
      • Aster
        Ìû
      • sserrano44 joined the channel
      • Nervosa
        Ah, right.
      • ajw0100 joined the channel
      • twoolie
        moneydouble: why do they need to logout? why not give them a preview page. or the live page with ?preview=1 added to the end. then you would only need to check for request.GET.preview in your code.
      • moneydouble
        twoolie: well that'd be an option I haven't really considered. But some managers / admins do need a client account as sometimes they're clients (not always, just sometimes).
      • sachinag has quit
      • twoolie
        ok, but that's a separate issue
      • moneydouble
        twoolie: what do you mean?
      • oh well I see but how do you think I should approach this?
      • twoolie
        even if some managers/admins also need a separate client account, it noes not mean everyone should log out and in again just to see the public view of a page
      • zeograd has quit
      • I think you should approach it by enabling some type of "preview" functionality
      • iiie0 has quit
      • moneydouble
        hmm
      • twoolie
        Also, you should reconsider having a distinction between "manager" and "client" accounts. A smart system will allow you to be both manager and client of different domains without having to have two accounts