#django

/

      • krayola has quit
      • krayola_ is now known as krayola
      • jnoob22 has quit
      • jnoob22 joined the channel
      • Milossh has quit
      • hwrd|work joined the channel
      • JustSighDudes has quit
      • jnoob22 has quit
      • JustSighDudes joined the channel
      • chrislkeller has quit
      • JustSighDudes
        What's the story with django.contrib.comments being deprecated? Are comment apps based on that safe to use?
      • PoliticsII
        It's still available in an external repo
      • mazatta has quit
      • Nervosa joined the channel
      • so I'd say that you're mostly okay. Even if you use a new version of Django, you can always include django-contrib-comments.
      • codeshop has quit
      • dray3 joined the channel
      • hwrd|work has quit
      • eppa has quit
      • dali has quit
      • darylantony joined the channel
      • FunkyBob
        JustSighDudes: I think everyone else switched to using Disqus :)
      • Milossh joined the channel
      • mrap has quit
      • percent20 joined the channel
      • JustSighDudes
        FunkyBob: Yeah :/ But I don't want the users to sign in to submit content and then a separate sign in for comments.
      • FunkyBob
        comments are easy to write...
      • kristallpirat joined the channel
      • JustSighDudes
        True. Are there any good reasons against using django.contrib.comments?
      • fmdfrankv joined the channel
      • hwrd|work joined the channel
      • mrap joined the channel
      • fmdfrankv
        hey guys is there a way to place a template tag in for a form element?
      • or modify the element's html extensively?
      • JustSighDudes
        fmdfrankv: You can do that in your forms.py
      • PoliticsII
        JustSighDudes: I guess if you had different ideas about what you wanted your comment system to be like, you might want to use something else
      • but if django-contrib-comments works for you, then go for it.
      • Saviq has quit
      • JustSighDudes
      • fmdfrankv
        thank you JustSighDudes
      • FunkyBob
        JustSighDudes: stop giving links to DEV docs
      • eppa joined the channel
      • JustSighDudes: as to the contrib.comments app... no, no particular reason against it... I think Django are trying to shed contrib apps where they can
      • eppa
        hmm, need to hook up my irc client with reconnect for when people unplug the router
      • FunkyBob
        eppa: irssi in a screen session on a vps, my friend :)
      • JustSighDudes
        FunkyBob: Wasn't there a bot that fixed that? I didn't even check I thought it would kick in
      • k_sze[work]
        Not strictly a django question: In the relational data jargon, were there special terms to denote two records that are related by FK?
      • I forget.
      • Kedgen joined the channel
      • JustSighDudes
        k_sze[work]: One to one relationship?
      • jfw
        FunkyBob: have you tried tmux? just recently switched after a decade of screen... so much better :)
      • m0rpho joined the channel
      • FunkyBob
        JustSighDudes: ticketbox has been exhausted by all the lazy people who just use google
      • Kedgen
        I have a custom user extending AbstractBaseUser and while I have a last_login field in my data table, when I try to log a user in I get this error: Column 'last_login' cannot be null
      • jfw
        i'm guilty of that. it's faster and better than djangoproject's search
      • PoliticsII
        The relationship would be one-to-many (or many-to-one) if you have two rows related by a foreign key. That is, unless the foreign-key relation also has a unique constraint.
      • If it has a unique constraint, then it's one-to-one.
      • Not sure if that answers your question.
      • JustSighDudes
        True. Googling something is a reflex now
      • jfw
        Kedgen: you probably don't want your last login field to be defined as not null
      • JustSighDudes
        I don't even have to know what something is called. I just type what I'm thinking about + django and google either finds me the docs page or an app that takes care of it for me.
      • Kedgen
        jfw jfw: Thank you so much
      • that fixed it!
      • I just set it to null
      • rydgel joined the channel
      • huh I thought that I would only get that error if I had it set to null and it wasn't allowed to be
      • vbabiy has quit
      • In PHPMyAdmin there is a null checkbox
      • does that just determine whether it's allowed to be null?
      • JustSighDudes
        Kedgen: You're on your way to a world of hurt.
      • Kedgen
        why is that the case
      • JustSighDudes
        You're gonna make the db and django out of sync
      • sohail has quit
      • Sure you can be careful about it and make sure you check everything but that's the hard way of doing it.
      • I find everything works best if all your db modifications are done through models
      • velcrow
        dammit i cant find a single line to reset my database
      • i have to delete the whole thing, and create a new one
      • JustSighDudes
        velcrow: What are you trying to do?
      • velcrow
        well, i ran a syncdb, but I messed up my model because I created a datefield but didn't set null=true in it, so it keep throwing this error: (1048, "Column 'birthdate' cannot be null")
      • JustSighDudes
        Are you not using south?
      • velcrow
        I just want to run a fresh syncdb so that it realizes I made the change
      • ssbr has quit
      • south? I read about it in the docs but didn't know it applied to my situation.
      • at3560k has quit
      • jdunck has quit
      • mayhew
        velcrow: you using MySQL?
      • JustSighDudes
        South is data migrations for your models. It's like syncdb on steroids.
      • velcrow
        oh i see
      • will try
      • abisson joined the channel
      • abisson
        yoooo! anyone using Haystack? I have a quick question but their channel is dead lol
      • JustSighDudes
        Well you might have to do it manually this time but it'll take care of this stuff for you after you start using it.
      • Goopyo has quit
      • PKKid2 joined the channel
      • m0rpho has quit
      • Goopyo joined the channel
      • radez_g0n3 is now known as radez
      • rydgel has quit
      • Goopyo has quit
      • Hipikat joined the channel
      • caleb_ has quit
      • diabel232 has quit
      • diabel232 joined the channel
      • velcrow
        JustSighDudes, Ok I installed south, but what do I have to do manually?
      • phix has quit
      • k_sze[work]
        So Rails has "Better Errors", is there its counterpart?
      • in django, I mean.
      • corehook joined the channel
      • mayhew
        k_sze[work]: django_extensions with runserver_plus
      • mgrouchy joined the channel
      • required werkzeug
      • lemonjack3 joined the channel
      • darylantony has quit
      • brntn
        abisson: what's the haystack q, we implemented it a while ago
      • mihasya has quit
      • mattmcc
        k_sze[work]: I suppose that depends on what it does.
      • mazatta joined the channel
      • abisson
        ok…brntn: just to be sure, if I do
      • results = SearchQuerySet().models(User).filter(last_name__startswith=request.GET['q']).filter(department=request.GET['d'])
      • brntn: this will call ElasticSearch only once correct? The filters are just being applied to a regular QS?
      • k_sze[work]
        mattmcc: I'm mostly interested in the full stack trace with stack frame variables and live REPL per stack frame.
      • Bombe has quit
      • lemonjack3
        hi everyone, i m a bit confused right now. when i access a related manager, django names it x_set, but when i want to filter the relation objects i have to use xs (lowercase plural). isnt that inconsistent? or is there a reason behind it, i can only find _set mentioned in the docs?
      • brntn
        abisson: Yep, it acts like a reqular queryset in that case I think (though, the django-haystack guys would know more)
      • FunkyBob
        lemonjack3: I would expect in filter it to just be the field name... no lower case and no plural [unless the field name is plural]
      • s/field/model/
      • brntn
        abisson: There's no reason that you couldn't do both of those filter in one filter(), and wouldn't be too hard to check by looking at the log
      • lemonjack3
        FunkyBob: oh ok of course, that makes sense... gosh i hate my companies naming 'conventions'
      • FunkyBob: my fault, thanks a lot
      • abisson
        brntn: yeah I thinking about that
      • I was**
      • brntn: do you know where we can get directly the log with all the queries?
      • brntn
        abisson: not sure with ElasticSearch, we were using Solr
      • abisson
        kk
      • brntn: thx!
      • k_sze[work]
        ugh, installing django-extension just broke pip.
      • strocknar is now known as strock|sleep
      • purkinje joined the channel
      • mattmcc
        k_sze[work]: Yeah, you'll like the werkzeug debugger.
      • k_sze[work]
        after I do 'pip install django-extension', subsequent uses of pip result in AttributeError: 'module' object has no attribute 'DEBUG'
      • melinath has quit
      • jessexoc joined the channel
      • eternicode joined the channel
      • melinath joined the channel
      • nvm
      • there was a logging.py file in my pwd.
      • and pip freaked out.
      • markalanevans has quit
      • ejb
        anyone have recommendations for a bootstrap app that provides things like bootstrap formatted forms?
      • it seems like there are a lot of options... not sure which one is current