Re: How can I access field values generically?

2016-12-20 Thread Mike Dewhirst
Bumping this question again, I have done all the individual concatenations with the following model method ... def concat_fields(self, ingredients): """ ingredients is a queryset of substance:substance m2m records with the second FK to substance in a field called "ingredient" Objecti

Re: Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
Hi, Yes that was it. Although I was getting this error: *ERROR - worker - Error processing message with consumer myproject.consumers.ws_message:* But this was corrected after the *enforce_ordering *was added into the consumer function. Thank you so much for your help and for introducing such a

Re: Understanding django channels persistant data

2016-12-20 Thread Andrew Godwin
On Tue, Dec 20, 2016 at 3:18 PM, Kakar Nyori wrote: > Wow, from the creator himself! Thank you. >> >> > Just so we're clear, *message.channel_session['key']* is the same as > *request.session['key']*, did I get you correctly? > It's very similar - the difference is that `request.session` lasts f

Re: Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
Wow, from the creator himself! Thank you. > > Just so we're clear, *message.channel_session['key']* is the same as *request.session['key']*, did I get you correctly? And there's just this another confusion, why can't we us *"text": message.content['text']*, but instead its *"text": message['text

Re: Understanding django channels persistant data

2016-12-20 Thread Andrew Godwin
On Tue, Dec 20, 2016 at 2:00 PM, Kakar Nyori wrote: > I am trying to grasp the concept of persistant data in django channels > . > I have searched the reference and other parts but didn't clear my > confusion. I would

Re: validate_email returns None for any or format

2016-12-20 Thread Vijay Khemlani
As far as I know validators don't return anything, just raise an Exception if the parameters don't validate On Tue, Dec 20, 2016 at 10:28 AM, NoviceSortOf wrote: > > Why does validate_email return None irregardless of what is typed in? > > >>> from django.core.validators import validate_email >

Re: Translation to Korean

2016-12-20 Thread Tim Graham
Hi, the process is outlined at https://docs.djangoproject.com/en/dev/internals/contributing/localizing/#documentation. On Tuesday, December 20, 2016 at 8:34:11 AM UTC-5, 이지훈 wrote: > > Hi, I'm a developer from Korea and I was wandering if I could register > translations for Django document. > >

Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
I am trying to grasp the concept of persistant data in django channels . I have searched the reference and other parts but didn't clear my confusion. I would really appreciate if you help me understand better. consumer

Translation to Korean

2016-12-20 Thread 이지훈
Hi, I'm a developer from Korea and I was wandering if I could register translations for Django document. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-

validate_email returns None for any or format

2016-12-20 Thread NoviceSortOf
Why does validate_email return None irregardless of what is typed in? >>> from django.core.validators import validate_email >>> x = validators.validate_email('t...@example.com') >>> print x None >>> Shouldn't it be returning True or False? -- You received this message because you are subscrib