#django

/

      • jefeson joined the channel
      • Technodrome joined the channel
      • geetar joined the channel
      • SecondForm_Glenn has quit
      • disgrntld has quit
      • dcrouch joined the channel
      • shangxiao joined the channel
      • thomaxo
      • garrypolley joined the channel
      • FunkyBob
        thomaxo: ajax forms? you mean ... forms? :)
      • to django there's really no difference
      • thomaxo
        both kinda, user posts form and component gets updated inline after post :)
      • Genitrust joined the channel
      • Genitrust has quit
      • basically every component needs to be able to be pulled isolated from page, but i think thats simply a routing, i'll probably figure it out :)
      • garrypolley has quit
      • deltaskelta joined the channel
      • yeah, nvm :D .. ajax replace <component id="21323"></component> with "http://home.com/components/gallery/template&id=21323" -> "component"
      • citizen-stig joined the channel
      • any suggestions on front-end javascript frameworks that work great with django? jQuery seems so old-school, yet newer stuff like angular seems to be having no plans for LTS releases soon..
      • FunkyBob
        any
      • mattmcc
        Django doesn't care.
      • thomaxo
        django is pretty awesome
      • FunkyBob
        though if you're using jquery, make sure you switch off that stupid non-standard form encoding stuff [is it off by default yet?]
      • thomaxo
        not sure, but i'll probably need to provide a key for django and for jquery?
      • mattmcc
        I thought they rejected calls to turn it off by default, because Rails.
      • A key?
      • FunkyBob
        all that bullshit of adding [] onto field names, etc...
      • thomaxo
        security key
      • FunkyBob
        mattmcc: I thought it was because PHP...
      • thomaxo
        so not everyone can post stuff to a url
      • garrypolley joined the channel
      • FunkyBob
        rails uses the same shit?
      • mattmcc
        Thought they did..
      • FunkyBob
        thomaxo: security? look at the Auth docs
      • thomaxo
        will do!
      • noobstrap has quit
      • i suppose django also doesn't care about the server os very much? ubuntu/centOS/...?
      • dongcarl joined the channel
      • surfnturf_ has quit
      • mattmcc
        Nope, why would it? It's just Python.
      • thomaxo
        True, but some stuff might work better with nginx, apache or centOS + apache,... so many combinations :P
      • currently i'd pick it at random
      • mattmcc
        In production, Django just needs a WSGI server (gunicorn, uwsgi, mod_wsgi, etc..)
      • Well, what are you familiar with?
      • thinkt4nk joined the channel
      • thomaxo
        pretty much familiar with cheap shares hosting :P
      • shared*
      • so i suppose i'll use the one with the easiest set-up tutorial :)
      • jnoob22 joined the channel
      • noobstrap joined the channel
      • rpkilby joined the channel
      • sangy
        thomaxo: I tried getting it play well with React, but it was a pain tbh
      • FunkyBob
        thomaxo: avoid anything using cPanel
      • sangy
        FunkyBob: bc of hax, or something else?
      • DLSteve joined the channel
      • thomaxo
        i'll have a look at which front-end js framework likes me best :)
      • isnt django always done with SSH setup stuff?
      • cnk
        thomaxo: I like DigitalOcean for it's docs
      • thomaxo
        was thinking of going with digitalOcean :)
      • hyperair has quit
      • yoongkang joined the channel
      • lolidunno
        DO is alright
      • shangxiao
        DO woo
      • lolidunno
        some people I know swear by linode or vultr
      • I use DO myself
      • mmalone joined the channel
      • thomaxo
        https://github.com/stephenmcd/django-forms-builder pretty much perfect for my cms-idea, just need to make it pretty and let it generate components instead :) And then realise a whole dozen of exceptions but meh! Exciting
      • jaddison has quit
      • FunkyBob
        sangy: because it's sucky, restrictive, they tend to only have MySQL, only run CentOS [and old centos], tend to charge extra for SSH access... only run apache, and then without mod_Wsgi...
      • yomilk joined the channel
      • given how cheap and easy it can be to run a DO droplet, and host half a dozen sites on that...
      • eperzhand has quit
      • thomaxo
        yeah, DO is cheaper then cheap hosts
      • probably doesn't have mailservers though?
      • mattmcc
        That's what Mailgun, Sendgrid, Mandrill, etc. are for.
      • You can run your own mail server on a VPS of course, but, it wouldn't be my first choice.
      • HowardwLo
        how do i adjust the period of time where the user stays authenticated when they come back?
      • yoongkang has quit
      • nickpappin has quit
      • mattmcc
        HowardwLo: Session cookie lifetime
      • HowardwLo
        mattmcc: danks
      • nickpappin joined the channel
      • dongcarl
        Hi guys, does anyone know how to make `python3 manage.py makemessages` ignore everything BUT one folder when generating message files?
      • ^i18n related
      • temhaa has quit
      • HowardwLo
      • mattmcc
      • subho has quit
      • thomaxo
        maybe override the function in routes, for every route except one, would be my uneducated amateurish try :)
      • sangy has quit
      • nickpappin has quit
      • HowardwLo
        mattmcc: ah thank you. the one i linked, is that for inactive page view? like if you haven’t interacted with django for 5 minutes, it’ll auto log you out?
      • mattmcc
        No, Django doesn't do that.
      • rpkilby has quit
      • FunkyBob
        I thought that was to override the default xpiry?
      • leehinde joined the channel
      • Haxor104 joined the channel
      • Haxor104
        no wonder no one was one
      • i was Dc from channel
      • rpkilby joined the channel
      • mrkent joined the channel
      • mattmcc
        Well, you can expire the session, sure. But the user wouldn't know they're logged out until their next request.
      • yomilk has quit
      • HowardwLo
        right, when the user tries to do something that requires auth, it’ll prompt for a login
      • FunkyBob
        if that's how you've written it
      • (for instance, using login_required)
      • HowardwLo
        cool. does inactive count as no requests to django?
      • or does it include js/frontend stuff?
      • mattmcc
        Django's server-side, it doesn't know what the frontend is doing unless it makes a request to the server.
      • Coldblackice joined the channel
      • krawchyk has quit
      • urth joined the channel
      • Genitrust joined the channel
      • tsujin joined the channel
      • garrypolley has quit
      • dongcarl has quit
      • thomaxo
        can django prompt an update to all front-end sessions?
      • mattmcc
        Server-sent events?
      • thomaxo
        as a result of user interaction
      • fonillius has quit
      • say user A and B edit the same page, user A updates, user B gets prompted
      • mattmcc
        That's a pretty specific situation.
      • One approach might be pub/sub.
      • pulgalipe joined the channel
      • wub_wub has quit
      • Genitrust has quit
      • thomaxo
        which get updates every 20 secs or something?
      • user A -> updating moduleA, user B -> disable moduleA
      • but meh, those are for in the far future :P
      • rokra has quit
      • Knyght
        it's a hard problem to solve yourself I think
      • lot of annoying things to consider
      • thomaxo
        yeah, maybe just send the module_revision_ID along with the form post, and if it's an older revision disable updating to prevent weird database stuff?
      • yomilk joined the channel
      • mikes000 has quit
      • leehinde has quit
      • Knyght
        I wonder if you could do explicit locking
      • say, once someone starts editing, lock the row for 10 minutes, put a timer on the screen
      • and just catch/handle the error nicely if someone tries to edit during the lock
      • but not sure how you'd do that in django
      • donspaulding joined the channel
      • not even sure if you can just say "lock row for x minutes" or "lock row until I say stop", hmm
      • thomaxo
        when someone else starts editing forms, you can request component_editability(id=12312312341232)
      • mattmcc
        At that point you're writing a rather elaborate JS app that talks to Django.
      • thomaxo
        yeah
      • i barely know good js too :P
      • mattmcc
        So, yes, of course it can be done.
      • Technodrome has quit
      • dongcarl joined the channel