#django

/

      • michelem
        we are having an increasing frequency of unpredictable django errors. The traceback is mostly of these 2 types: https://dpaste.de/vC8h and https://dpaste.de/XBWb
      • doismellburning
        ...well that doesn't look fun
      • chimerahitman
        bcSquared, exactly. I find that with django, all that is stopping me is the creativity. So, choose well young padwan xD
      • doismellburning
        michelem: you have something very odd going on
      • michelem
        thanks, I got that much :)
      • dmmoody joined the channel
      • doismellburning
        michelem: I mean, seriously weird
      • bcSquared
        I feel old when I am browsing Amazon looking for a book to learn Django than bookmarking youtube videos and blogs. I like how most books go in a sequential order and tend to build to something in steps.
      • doismellburning
        bcSquared: so, seriously, the official docs are fab
      • bcSquared
        That and my nerd cred goes up with every nerd book on my bookshelf. Laff.
      • fission6
        michelem: you should ask in #python
      • Lobstaman3 joined the channel
      • doismellburning
        bcSquared: but apparently the 2scoops book is very good
      • bcSquared: (I much prefer books to videos)
      • bcSquared
        doismellburning, I'm reading through the official tutorial now. I'll be working through those since I've finished the Codeacademy Python modules.
      • doismellburning
        bcSquared: (I much prefer learning-by-doing to books ;))
      • ymmv
      • bcSquared
        doismellburning, same. That's why my project and ideas are way out of reach right now. I'd feel remissed if I didn't shoot for the stars.
      • michelem
        I wonder if that can be related with memory corruption, but it's server-grade HW with ECC ram
      • doismellburning
        michelem: fs corruption?
      • mitaka has quit
      • busla joined the channel
      • michelem: (eliminate the whole machine from the equation?)
      • Goopyo joined the channel
      • chimerahitman
        Agreed, doismellburning. Reading will only let you know of stuff, and when you have finished the book and decide to embark on some project your a all ??? I don't remember anything. S
      • doismellburning
        this is one of the things I like about PaaS deployments to ephemeral machines
      • busla has quit
      • hylje
        michelem: +1 on corrupted filesystem subtly ruining the python modules
      • ramsub07 joined the channel
      • chimerahitman
        bcSquared, since you are your own boss, try out the example tutorial and give it a go. Get a feel for it. If you want to be real objective, give php a try too.
      • doismellburning
        bcSquared: I can't recommend Heroku / Elastic Beanstalk enough
      • slav0nic has quit
      • digismack
        bcSquared: You may also look at Docker containers for local development, then easy cloud deployment.
      • doismellburning
        which EB supports
      • digismack
        ^^
      • rosco77 joined the channel
      • michelem
        wouldn't the OS load the .pyc upfront and then operate in RAM?
      • it's ZFS btw
      • bcSquared
        I've dabbled with PHP already. had an (ugly) start to it. I may bring it back out of storage and see if I can work on it a bit more.
      • doismellburning
        michelem: then FS corruption seems less likely than average
      • michelem: but yeah, remove the machine from the equation
      • sligodave joined the channel
      • chimerahitman
        bcSquared, sounds good you had a taste for PHP. Give it an afternoon to follow the tutorial, or just reading it. You will see it is quite interesting.
      • mlavin has quit
      • twoface88 joined the channel
      • garghoule has quit
      • ohrstrom has quit
      • ohrstrom joined the channel
      • graingert joined the channel
      • marc_v92 has quit
      • graingert has quit
      • Genitrust has quit
      • mitaka joined the channel
      • kuter has quit
      • exploreshaifali has quit
      • natea joined the channel
      • kuter joined the channel
      • grindmodeon joined the channel
      • mitaka has quit
      • AndyRez_ joined the channel
      • mitaka joined the channel
      • mitaka has left the channel
      • areski joined the channel
      • gaucho has quit
      • edgabaldi has quit
      • pilva joined the channel
      • brxs has quit
      • Oli has quit
      • veduardo has quit
      • brxs joined the channel
      • fission6 has quit
      • AndyRez joined the channel
      • twoface88 has quit
      • MasterPhi joined the channel
      • hlvwrk has quit
      • twoface88 joined the channel
      • pwrentch has quit
      • choosegoose
        if myobj has a foo_set, and each Foo has a bar_set, how can I get all Bars of all the Foos in foo_set?
      • ohrstrom has quit
      • Earlo joined the channel
      • lduros joined the channel
      • michalmo has quit
      • SteenJobs
        doismellburning: just read another one of your blog posts - hosting static files on s3 - seems like that’s what the app i inherited is doing, but let’s say i want to add some new js files, where do i put them to then push them up to s3, just create a static folder in my project directory?
      • gthank joined the channel
      • doismellburning
        SteenJobs: anywhere that's a static file source, e.g. $app/static
      • sligodav_ joined the channel
      • SteenJobs
        doismellburning: ok cool. so i can just create an $app/static folder, add the jquery plugin, and then run collectstatic?
      • doismellburning
        SteenJobs: pretty much, yep
      • jmckind has quit
      • SteenJobs
        doismellburning: awesome :) - also, is there a django way to src a JS file for all templates, or do i have to individually call it in each of the templates?
      • RicoAlpha joined the channel
      • doismellburning
        SteenJobs: you're looking for template inheritance
      • Rafibd01717 joined the channel
      • SteenJobs: see `extends` / `block`
      • SteenJobs
        doismellburning: thanks. that’s just what i needed, resources. my issue is i don’t know the terms to be looking up - sweet.
      • Rafibd01717
        in settings.py module I see a TIME_ZONE variable
      • my time zone is GMT +^
      • GMT +6
      • Now I want to change default UTC to GMT +6
      • should I write "GMT" or "GMT +6"?
      • doismellburning
        Rafibd01717: I suspect your timezone is UTC+6
      • Rafibd01717: because iirc GMT is only defined for half the year
      • jaddison joined the channel
      • Rafibd01717
        no I am talking about django settings.py
      • mribeirodantas joined the channel
      • luzfcb has quit
      • grindmodeon joined the channel
      • I asked this question in today afternoon but didnt get any answer from anyone. Is django iirc is down? :)
      • odraencode
        hmm
      • doismellburning
        Rafibd01717: ...I'm afraid I don't understand your question
      • odraencode
        Is there a way to set models.OneToOneField(ParentModel, primary_key=True, parent_link=True)?
      • Rafibd01717
        when I set up my computer O/S i set my time zone at GMT +6
      • issackelly has left the channel
      • doismellburning: Now I am trying to set my time zone in a django project. I am new in Django. So I am learning from documentation
      • now I see in documentation django tutorial part 1 it says I should change the variable value "UTC" to my local value if I want to see my local time on my website
      • For this from settings.py module I wanna change TIME_ZONE variables value from default "UTC" to "GMT"
      • doismellburning: My question is should I use only "GMT" or "GMT+6"?
      • ararog has quit
      • doismellburning
        Rafibd01717: I think you're expressing a very confused understanding of timezones
      • Coldblackice joined the channel
      • Rafibd01717: but assuming it's a legal value, I think you're looking for GMT+6
      • but I don't believe it's a legal value
      • Rafibd01717
        then?
      • doismellburning
        (try it and see)
      • michelem has quit
      • cramm joined the channel
      • Rafibd01717 has quit
      • bwreilly has quit
      • robvdl joined the channel
      • lduros has quit
      • rosco77 has quit
      • odraencode
        :S
      • mihow has quit
      • Help. I'm trying to inherit a table and my child table is linked to the parent table through a shared primary key
      • evany joined the channel
      • fission6 joined the channel
      • eVRiAL has quit
      • crakrjak joined the channel
      • micah_chatt has quit
      • pahko has quit
      • evany has quit
      • Haudegen has quit
      • shutupsquare has quit
      • zsero has quit
      • Goopyo has quit
      • SirRetnuh has quit
      • ticketbot has quit
      • ticketbot joined the channel