#django

/

      • ineedarobot has quit
      • iiie has quit
      • tuxcanfly has quit
      • tuxcanfly joined the channel
      • jonet joined the channel
      • sudobangbang joined the channel
      • MrS1lentcz joined the channel
      • Fervicus
        What do you guys use for managing and minifying assets?
      • mihasya has quit
      • mrydell has quit
      • schinckel
        I have used django-compressor for quite some time: I'm currently really only using that for CSS/Sass at the moment. I'm experimenting with requirejs, and haven't found a nice way to combine these yet.
      • ohrstrom joined the channel
      • twoface joined the channel
      • sayan joined the channel
      • Fervicus has quit
      • hoot joined the channel
      • dash_ joined the channel
      • jangoh joined the channel
      • igorline joined the channel
      • FunkyBob
        schinckel: I believe django-pipeline was blessed at Pyconau, and not just because of its py3 support
      • bulkan has quit
      • Milossh has quit
      • jasondot_ has quit
      • dodobas
        yello
      • FunkyBob
        dodo
      • nicklo has quit
      • Milossh joined the channel
      • MrS1lentcz
        hello, how can i make datetime ">" and "<" conditions in query set using filter method?
      • *please
      • aliona_ joined the channel
      • FunkyBob
        MrS1lentcz: __lt and __gt ?
      • dodobas
        FunkyBob: my 'old' man :)
      • MrS1lentcz
        FunkyBob: i found only _gt, thank you very much :)
      • m0rpho joined the channel
      • arturrro has quit
      • foxmask
        bonjello
      • FunkyBob
      • arturrro joined the channel
      • arturrro has quit
      • ChrisMorgan joined the channel
      • Dennis82 has left the channel
      • bulkan joined the channel
      • Fervicus joined the channel
      • Fervicus
        bah, internet went down.
      • Fervicus checks logs for answers to his question
      • isinf has quit
      • ArcTanSusan joined the channel
      • schinckel
        FunkyBob: Does it know how to combine requirejs-style includes?
      • Fervicus
        schinckel: Does django-compressor compile SASS ?
      • FunkyBob
        schinckel: does seem to mention require n the docs
      • schinckel
        Fervicus: Yess.
      • (You need to have a sass compiler installed)
      • Fervicus
        excellent
      • I have used web-assets before with Flask
      • that probably has a django flavor too
      • FunkyBob
        Kronuz writes a sass compiler ... pure python
      • schinckel
        Fervicus: looks like django-pipeline does sass, too.
      • FunkyBob: I can't see a reference in django-pipeline to require(js).
      • Might be possible to create a compressor though.
      • moneydouble joined the channel
      • ChrisMorgan
        I'm wanting to add a permission for an app, but it's one where there are no models. How can I create permissions for it?
      • grandfatha joined the channel
      • bojo has quit
      • bojo joined the channel
      • moneydouble has quit
      • jangoh
        FunkyBob i am getting database error after changing web server to apache.
      • how do i sync the sqlite3 to apache
      • ChrisMorgan
        So, is it possible to add permissions outside of a model.Meta.permissions?
      • gazumps joined the channel
      • EvilDMP joined the channel
      • Back2Basics has quit
      • bigkevmcd joined the channel
      • souradeep has quit
      • TrioTorus joined the channel
      • schinckel
        ChrisMorgan: Probably: you can just create Permission objects. Not sure what you would use for the various fields, though.
      • jrm2k6 has quit
      • hhatch joined the channel
      • donspaulding has quit
      • ChrisMorgan
        schinckel: you're right, I'd missed https://docs.djangoproject.com/en/1.5/topics/au... which you helped me find. Thanks!
      • jarshwah has quit
      • jarshwah joined the channel
      • schinckel
        It looks like technically they need to have a content_type (which there is one of per-model class, IIRC). Not sure what you would use in the case there is no model to associate with.
      • ChrisMorgan
        Actually, that's still requiring content_type. Hmm.
      • I'll take a look at it later.
      • schinckel
        You may be able to associate them with ContentType :)
      • ContentType.objects.get_for_model(ContentType)
      • ChrisMorgan
        That sounds at least moderately evil. I'll check with the source if that would do Bad Things.
      • schinckel
        I'd try to think about a more meaningful association, though. Since it is permission-based, you could associate it with the installed User class, or even Permission.
      • georgeirwin_ joined the channel
      • georgeirwin_
        I'm having issues with celery-haystack: 'Settings' object has no attribute 'CELERY_HAYSTACK_TRANSACTION_SAFE'
      • Can anyone point me in the right direction?
      • ChrisMorgan
        schinckel: thanks
      • jSanp joined the channel
      • jarshwah has quit
      • stephenmcd has quit
      • k_sze[work]
        What's the best way to add custom contraints to a field in a Model? By overriding the Model.clean_fields method?
      • jvennik joined the channel
      • Bosox20051 has quit
      • viwal_ joined the channel
      • schinckel
        k_sze[work]: Is it a field-level constraint, or does it affect multiple fields at the same time?
      • k_sze[work]
        field-level
      • Natsu- joined the channel
      • schinckel
        I've used a pre_save listener in the past, or override the save() method.
      • bulkan has quit
      • You may be able to use a field-level validator then. IIRC, they don't always run though.
      • ChrisMorgan has quit
      • TrioTorus has left the channel
      • BakaKuna joined the channel
      • moneydouble joined the channel
      • TrioTorus joined the channel
      • jangoh has quit
      • moneydouble has quit
      • souradeep joined the channel
      • jax joined the channel
      • sokmar
        does aaugustin hang around here?
      • schinckel
        sokmar: Never noticed him. FunkyBob might know.
      • bulkan joined the channel
      • ArcTanSusan has quit
      • grug joined the channel
      • FinalAngel joined the channel
      • nex9 has quit
      • jax has quit
      • bahamas joined the channel
      • nex9 joined the channel
      • bigkevmcd has quit
      • bigkevmcd joined the channel
      • jrm2k6 joined the channel
      • arturrro joined the channel
      • ghostlines joined the channel
      • jax joined the channel
      • Furoido
        now i dont know which image app should i be using
      • jax has quit
      • ohrstrom has quit
      • ohrstrom joined the channel
      • jwa
        Furoido: you don't have to, use whatever suits your project best. or make your own
      • Furoido
        maybe i should make my own then, but i cant find a tutorial to to fit my needs
      • jwa, though theres a tutorial that i bumped into but it uses FileField instead of ImageField
      • bahamas
        does anyone have some optimization resources? how do I know if my uwsgi server is using too much ram for example?
      • grandfatha has quit
      • bulkan has quit
      • sayan has quit
      • jwa
        Furoido: not sure why you wouldn't want to use ImageField - also you might want to look at easy_thumbnails, I often just go with that
      • jangoh joined the channel
      • Furoido
        jwa, i want to use ImageField, but the tutorial that ive got was using FileField
      • Fervicus has quit
      • fle joined the channel
      • batisteo joined the channel
      • jwa, easy_thumbnails doesnt have galleries
      • aendrew has quit
      • koleS320 joined the channel