Re: django-modeltranslation latest stable release not supporting Django 2.0

2018-07-31 Thread Andréas Kühne
Hi, This is not an issue for the django-users group, but rather, as you already have done, open an issue on the repository itself. What you also can do is go through the code and issue a PR to fix the changes required for supporting django 2.0 - the developer will probably happily accept the chang

Re: Problem with sending django channels event from models

2018-07-31 Thread Andrew Godwin
Yes, you can't just call "group_send" without awaiting it, or you'll get those warnings. You need async_to_sync, I'm afraid. Otherwise, you're not actually waiting for the group_send function to finish and you'll start getting some unreliable test results. Andrew On Tue, Jul 31, 2018 at 6:14 AM l

RE: Validating count + property of a Many2Many with a through table

2018-07-31 Thread Matthew Pava
Hi Sanjay, You may want to try signals. https://docs.djangoproject.com/en/2.0/topics/signals/ -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Sanjay Bhangar Sent: Tuesday, July 31, 2018 1:09 PM To: django-users@googlegroups.com S

Validating count + property of a Many2Many with a through table

2018-07-31 Thread Sanjay Bhangar
Hello! This is more of a code organization question than a "something is not working" question - it might get slightly rambling, so if this kind of question is not your cup of tea, you have been warned :-) So - I have a set of models like this (highly simplified): class Item(models.Model): tit

django-modeltranslation latest stable release not supporting Django 2.0

2018-07-31 Thread Uri Even-Chen
Hi, We are using django-modeltranslation for Speedy Net and Speedy Match ( https://github.com/urievenchen/speedy-net). We are using django-modeltranslation as well as other packages. I noticed that django-modeltranslation latest stable release (0.12.2, from Jan. 26, 2018, see https://pypi.org/proj

concurrency to request django multi url have problems

2018-07-31 Thread cnsongxiulu
concurrency to request two urls, django app get each url's header have problems.please jump to https://stackoverflow.com/questions/51606850/django-concurrency-request-two-url-each-request-header-is-wrong-to-each-url -- You received this message because you are subscribed to the

Live Streaming Video through WebCam

2018-07-31 Thread Pravin Yadav
*Hello Everyone, I'm using the Live Streaming Video through WebCam. It's storing in .avi format. When i'm playing the Video. I'm not getting the audio of that video. I hope that opencv does not provide the audio features. Kindly let me know if you have any idea. Thanks,* *Please find the below c

Re: Intregration Of on form submit user recive a sms in his phone

2018-07-31 Thread C. Kirby
Build your sms function in python. When the form is submitted fire off a celery task to send the sms On Tuesday, July 31, 2018 at 9:32:02 AM UTC-4, im...@wsegames.com wrote: > > How to impement this feature Intregration Of on form submit user recive a > sms in his phone. > -- You received this

Re: Intregration Of on form submit user recive a sms in his phone

2018-07-31 Thread Aaron Jack
I use this company: https://www.reach-interactive.com/ On Tuesday, 31 July 2018 14:32:02 UTC+1, im...@wsegames.com wrote: > > How to impement this feature Intregration Of on form submit user recive a > sms in his phone. > -- You received this message because you are subscribed to the Google Gr

Intregration Of on form submit user recive a sms in his phone

2018-07-31 Thread imran
How to impement this feature Intregration Of on form submit user recive a sms in his phone. -- 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-users+unsubsc

Re: Problem with sending django channels event from models

2018-07-31 Thread luan fonceca
Hello Andrew, sorry for the lack of traceback on the gist. I have changed my code a bit, i was using the `async_to_sync` but now i'm using this way inside my User save method: channel_layer = get_channel_layer() channel_layer.group_send( 'users_{}'.format(self.pk), { 'type': 'users.pos

Re: Change the default route of a view

2018-07-31 Thread Andréas Kühne
For the view that I wrote, you won't need an id in the request or on the url at all. It uses the currently logged in user for all of the requests. You will need to pass some kind of token in the request - so that you know which user is logged in. But the url could be something like this: urlpatt

Re: How to use multiple ForeignKeys

2018-07-31 Thread mottaz hejaze
put a foreign key in invoices model that points to vendor model . On Tue, 31 Jul 2018, 00:38 Alexander Joseph, wrote: > I'm building a Purchase Order app that uses a ForeignKey for Vendors. I > want to be able to use another ForeignKey for invoices once a Vendor is > selected. So the choices of