#django

/

      • Koterpillar
        aroncero: example?
      • retailify joined the channel
      • odarbelaeze
        ASUchander1: are you using django-celery?
      • SecondForm_Glenn joined the channel
      • AimerPaddle has quit
      • ASUchander1
        odarbelaeze: yeh, I think I just figured out the issue (after banging my head against a wall for 2 days.)
      • the -A argument to multi is required
      • sandwichheat joined the channel
      • Apparently with a single worker it assumes the app or something.
      • odarbelaeze
        aroncero: .distinct()
      • aroncero: .distinct() ??
      • staticshock__ has quit
      • ASUchander1: what should be the value, I can't get the info of celery to be in the config pannel while using django celery
      • aroncero
        odarbelzaeze: how can i use distinct in a OR between two queries?
      • odarbelaeze
        ASUchander1: It does
      • mrjazzcat has quit
      • Koterpillar
        aroncero: (q1 | q2).distinct()
      • slick666_work joined the channel
      • ASUchander1
        not sure what you mean by "config panel", but I use -A app_name
      • aroncero
        Koterpillar: sounds logical :D
      • odarbelaeze
        ASUchander1: I mean admin pannel
      • ASUchander1
        Oh, I don't use any admin stuff w/Celery
      • odarbelaeze
        ASUchander1: It should allow you to see tasks and other stuff if you're using django-celery
      • CashewGu_ joined the channel
      • ASUchander1
        so not sure I can be of much help there. Though I would assume you would need to setup admin with djcelery models..
      • odarbelaeze
        ASUchander1: I also don't use it but it seems odd to me when I go to the admin pannel and see pretty much nothing there
      • ASUchander1
        odarbelaeze: I thinkyou won't unless you register the models properly..
      • sandwichheat has quit
      • ustunozgur joined the channel
      • odarbelaeze
        ASUchander1: that miight be it
      • CashewGuy has quit
      • bsl10 has quit
      • aroncero: I assume you are using Q objects, aren't they able to combine into a QuerySet to wich you can apply the distinct() method
      • bsl10 joined the channel
      • mcspud
        ASUchander1 - haveyou configured celery-beat?
      • Otherwise the broker wont receive those tasks
      • ASUchander1
        Not with 3.1, but in this case I don't use it anyways :-)
      • This is my first foray with 3.1 and the changes to the setup...
      • mcspud
        Oh i didnt read your question, I dont even know what multi mode is
      • iraj has quit
      • kenbolton has quit
      • ustunozgur has quit
      • Figaro_ has quit
      • are you executing celery in the django context?
      • I don't know if that will help
      • `manage celery worker -l debug`
      • TheTemplar joined the channel
      • bsl10 has quit
      • ticketbot has quit
      • ticketbot joined the channel
      • eperzhand joined the channel
      • bsl10 joined the channel
      • tneva82 has quit
      • ybathia has quit
      • eperzhand has quit
      • bsl10 has quit
      • x-warrior has quit
      • x-warrior joined the channel
      • x-warrior has quit
      • bsl10 joined the channel
      • the_rat joined the channel
      • estulticia joined the channel
      • bsl10 has quit
      • bsl10 joined the channel
      • kenbolton joined the channel
      • bsl10 has quit
      • hlozada has quit
      • aroncero
        odarbelaeze: its works, I change to Q function (it is a inherited code )
      • bsl10 joined the channel
      • the_rat has quit
      • odarbelaeze
        aroncero: so it's solved now?
      • TheTemplar has quit
      • wuno
        omg.. why is regex so hard.
      • aroncero
        odarbelaeze: yes, works with an unique Q filter
      • transit
        wuno: s/\(regex\)/not \1/
      • (sed use of regex)
      • wuno
        lol
      • sn_ joined the channel
      • transit
        Why is english grammar so hard?
      • wuno
        I never understand why people say have you read the docs? have you done the tutorials. But I never read them and say oh there ya go. I get it. It always takes an abundance of examples I find of other peoples problems. I wonder sometimes does that make me a bad programmer? Or a normal person? Do you guys seriously go, I need to learn regex. Read 40 lines of doc and get it?
      • transit
        wuno: What's the problem you're having?
      • djapo has quit
      • Spending some time reading the docs if you have more than simple use-cases is usually a good idea.
      • wuno
        I have a list of urls I have parsed out of an xml file. I need to update a part of the string that says MD5-YOUR-OAUTH-TOKEN and update it with the md5hash of my oauth key.
      • Getting the hash to work was no problem.
      • took 30 seconds of reading.
      • transit
        Can you post a concrete example?
      • djapo joined the channel
      • wuno
        sure thank you.
      • sn_ has quit
      • transit
        (I'm assuming here that you aren't just venting and could use some help)
      • Koterpillar
        wuno: reading the docs by itself won't magically make you understand regex (especially regex), but it will give you baseline understanding of things.
      • mjk has quit
      • AndrewBC_ joined the channel
      • citizen-stig joined the channel
      • dodobrain has quit
      • wuno
        ya I would love some help. but I truly want to understand it. I hate coming back to these things and not knowing it later.
      • Ill post something
      • Koterpillar
        there's also a question of good vs. bad documentation...
      • krwl joined the channel
      • wuno
        True. But I think the Python docs have been pretty nice actually. I think the biggest problem is I like to see things written in fucntions and I think the examples are based on the command line.
      • I think...
      • AndrewBC has quit
      • mihow has quit
      • Koterpillar
        wuno: can't agree about the command line, experimenting in ipython is very valuable
      • transit
        When I used to get bitten by regex it was almost always 1 of 2 things; trying to do to much in one pattern or a false assumption about the string being searched.
      • s/to/too/
      • ejb has quit
      • giarc_ has quit
      • Koterpillar
        transit: regexes are unreadable...
      • transit
        Usually the case, gotta love good documentation.
      • bsl10 has quit
      • kriwil has quit
      • ambar_ joined the channel
      • citizen-stig has quit
      • bsl10 joined the channel
      • ricebATwork2 joined the channel
      • bsl10 has quit
      • wuno: Gotta run, catch me tomorrow if you don't find help before then.
      • transit has left the channel
      • wuno
      • ahh darn
      • coool
      • ycon_ has quit
      • bsl10 joined the channel
      • if someone can give me a kick in the right direction that would be cool.
      • ycon_ joined the channel
      • colinbits has quit
      • Koterpillar
        wuno: what do you mean by 'check this string'? Do you want to put the right string in?
      • raijin has quit
      • wuno
        yes basically I just need to change the MD5-HASH part to the hased string which is stored in tokenHased
      • raijin joined the channel
      • Koterpillar
        wuno: you don't need regular expressions, you need urllib.parse.{urlparse, parse_qs}
      • wuno
        ahh well maybe thats why that was so hard lol
      • pupil1 joined the channel
      • giarc_ joined the channel
      • bsl10 has quit
      • hvpc joined the channel
      • Thank you Koterpillar
      • ycon_ has quit
      • bsl10 joined the channel
      • ycon_ joined the channel
      • mpvnt joined the channel
      • glassresistor has quit
      • fission6 joined the channel
      • bsl10 has quit
      • ambar_ has quit
      • whaack joined the channel
      • bsl10 joined the channel