#django

/

      • postsneakernet joined the channel
      • d3vnull has quit
      • kandinski joined the channel
      • ckpoint joined the channel
      • michalmo joined the channel
      • basti-mbp has quit
      • areski joined the channel
      • rbanffy joined the channel
      • nathanhi joined the channel
      • d3vnull joined the channel
      • Nizumzen
        stown: heh funny you should mention that - I literally just started using django-countries
      • knbk joined the channel
      • jarshwah joined the channel
      • kezabelle
        isn't web2py even more magical than Django?
      • stown
        Nizumzen: very great app. i have a dutch admin interface and the country list is in dutch so it adapts
      • Nizumzen
        stown: cool
      • stown
        kezabelle: some things are great but there are no or just a few companies that develop in web2py
      • b10n1k joined the channel
      • kezabelle
        yeah, much of the ecosystem has clustered around django and flask
      • stown
        kezabelle: my company, and company of my boss are the only in dutch i am afraid.
      • kezabelle: i made factweb.nl an online invoice system and holidayadministration.com also in web2py
      • kezabelle: you can do great things with it but for advanced things where you got multiple apps and modules et cetera my opinion is that django is better.
      • kezabelle: django is more scalable
      • hightall joined the channel
      • eefvx joined the channel
      • hightall has quit
      • nimomo joined the channel
      • bkuberek joined the channel
      • ckpoint
        Trying to pull form data from a request, and they are not getting the value, but rather the empty strings.. anyone see anything wrong with this def? https://dpaste.de/ioRC
      • kezabelle
        well, what's being POST'd?
      • ckpoint
        kezabelle: heres the form https://dpaste.de/2jL3
      • sebcorbin is now known as sebcorbin`away
      • kezabelle
        none of those inputs have names :o)
      • ckpoint
        are you telling me it pulls from the name NOT the ID
      • sebcorbin`away is now known as sebcorbin
      • litewait joined the channel
      • gkap joined the channel
      • Agent86 joined the channel
      • shangxiao joined the channel
      • dkb20k joined the channel
      • choosegoose has quit
      • knbk
        ckpoint: the browser determines the value's key in POST by the fields name, not by its id. So yeah, it uses the name
      • shangxiao foots FunkyBob then runs away quickly
      • gabel joined the channel
      • ckpoint
        knbk: od dammit, its a little to early in the morning on a friday for me to start bashing my head against the wall…
      • knbk: thanks
      • tbaxter joined the channel
      • FunkyBob throws soggy cabbage at shangxiao
      • delgiudices joined the channel
      • shangxiao
        what can we help you with today delgiudices? :)
      • hillaj joined the channel
      • delgiudices
        hey shangxiao morning
      • nothing for now until i start getting errors :p
      • cad has quit
      • Nizumzen
        better get your websites using SSL soon: https://blog.mozilla.org/security/2015/04/30/de...
      • delgiudices
        Wow
      • doismellburning
        yay
      • and by yay I mean "argh wtf"
      • shangxiao
        "there have been statements from ... the US Government calling for universal use of encryption by Internet applications"
      • lol
      • well, at least I won't have to explain https to people anymore
      • delgiudices
        i don’t know about https
      • never used it
      • hillaj has quit
      • shangxiao
        get out!
      • lol j/k
      • delgiudices
        I will learn i promise
      • litewait has quit
      • shangxiao
        you don't need to be a cryptologist to learn it, it's not that hard, just a few principles
      • djapo has quit
      • Nizumzen
        delgiudices: just make sure you use eliptic curve cryptography in your server settings
      • delgiudices: and make sure you get an A+ here: https://www.ssllabs.com/ssltest/
      • delgiudices
        Nizumzen: alright will do thanks
      • Nizumzen
        unlike my bank who seem to think using RC4 and MD5 is acceptable :|
      • Squarepy
        wasn't eliptic curves compromised :)
      • nimomo has quit
      • shangxiao
        md5 should be put in a museum already :)
      • gabel has quit
      • mmikeym joined the channel
      • nimomo joined the channel
      • garrypolley joined the channel
      • FunkyBob
        shangxiao: but not rc4?
      • READ10 joined the channel
      • jessamynsmith joined the channel
      • besides... we should ditch IP and move the internet to RINA
      • :P
      • Nizumzen
        Squarepy: I haven't heard that - got a link?
      • joshlegs joined the channel
      • shangxiao
        submitted my client's php/apache site to that ssl link, they got an F
      • Nizumzen
        shangxiao: heh that's pretty bad
      • FunkyBob
        they deserve it
      • shangxiao
        what can you expect from a php dev xD
      • FunkyBob
        Insecure by default
      • shangxiao
        the developer is the root of the problems
      • insecure minded by default ;)
      • FunkyBob
        well, they probably feel security is "hard"... because their tools make it hard... something you have to remember lots of less-than-easy things to do to achieve
      • anth_x has quit
      • shangxiao
        yes, true
      • NoobyBoy1228 has quit
      • but this particular person was the person I was telling you about one day - completely unwilling to learn new things and move away from php & mysql
      • Shariq joined the channel
      • even though he has a nice comfy 9-5 position and paid well
      • FunkyBob
        perhaps _because_ he has a comfy 9-5?
      • shangxiao
        i quit that 9-5 to escape php :)
      • ccmonster joined the channel
      • and partly to escape him ;)
      • Nizumzen
        shangxiao: why do I get the distinct impression that that person probably has tons of SQL injection vulns in his code?
      • knbk has quit
      • Boogymanx
        what's wrong with MD5?
      • knbk joined the channel
      • jessamynsmith
        I wonder if anyone can advise me on something... I am helping a person who inherited a codebase with lots of model inheritance plus mixins. I've never touched either of these much. They are asking me if it's bad to have a model with two abstract parent models and a mixin, and it *seems* bad to me, but I'm having trouble explaining why.
      • sebcorbin is now known as sebcorbin`away
      • kezabelle
        I'm completely unwilling to learn new things too, hence still being in here ;)
      • sebcorbin`away is now known as sebcorbin
      • ccmonster has quit
      • shangxiao
        kezabell: at least you're on the right thing :)
      • Nizumzen
        Boogymanx: MD5 has been broken for years and years and years
      • Boogymanx: ...and years and years and years
      • Boogymanx
        Oh, damn
      • kezabelle
        shangxiao: meh, elixir looks cool :p
      • Boogymanx
        Why is it still the default encryption in Django?
      • or was it SHA
      • idk
      • I'm not all that well-versed in security
      • shangxiao
        jessamynsmith: inheritance and mixins to me, personally, is bad design
      • michalmo has quit
      • jessamynsmith
        shangxiao: I agree, but why?
      • Nizumzen
        Boogymanx: it isn't IIRC
      • Boogymanx: anyway you should be using this password hasher for all new django projects: django.contrib.auth.hashers.BCryptSHA256PasswordHasher
      • michalmo joined the channel
      • Boogymanx
        Nizumzen: How do I change that from the default? is it a setting tuple?
      • doismellburning
        composition > inheritance ;)
      • shangxiao
        well inheritance is quite often used as an anti-pattern: people want to simply bunch together similar code because it looks similar without asking whether or not there is a true ISA relationship happening
      • what DISB said :)
      • Zeograd joined the channel
      • inheritance violates information hiding
      • Nizumzen
      • mekhami joined the channel
      • Boogymanx
        Nizumzen: if I never changed it from the default, am I fine? :p
      • jessamynsmith
        Yeah, it hasn't been md5 for a long time
      • shangxiao
        mixins also feel like cheap and nasty ways to refactor code
      • jessamynsmith
        heh
      • rbanffy joined the channel
      • Nizumzen
        Boogymanx: probably but why not use the most secure password hasher you can?
      • Boogymanx: bcrypt with SHA256 is pretty darn good
      • mekhami
        shangxiao what makes you say that??
      • jessamynsmith
        thanks for the insights... my gut feeling was "blah" but this is a new person and they wanted a good explanation
      • Nizumzen
        Boogymanx: for something that takes 2 seconds to change it is definately worth it
      • jessamynsmith
        not just "don't do it because I told you so"
      • Boogymanx
        Nizumzen: what happens to my existing users if I change that?