Re: Reusable Chat Application for Django Developers

2019-03-18 Thread panfei
Congratulations ! Ahmed Ishtiaque 于2019年3月19日周二 上午5:44写道: > Hello everyone, > > A couple of months ago I was trying to check if I can use any of the apps > that appear in Django Packages Chat > section but it seems like none of them are maintained very

Re: Reusable Chat Application for Django Developers

2019-03-18 Thread Aldian Fazrihady
Hi Ahmed, Congratulations for the open source project. My website is also using Django Channels for its chatting feature. It is awesome that you can implement the ideas of a framework that simplifies websites to have chatting feature. When I have time, I will check if I can use this module for my

Re: Request & Response >> Device send HTTP request to web server

2019-03-18 Thread Mohan Goud
Unit 9 of IoT by Vijay madisetti is completely related to that On Tue 19 Mar, 2019, 2:43 AM Sabuhi Shukurov Hello! > > I need your help and assistance in my project. Currently we are developing > project on the device, which is on arduino written on C low level, it is > really difficult to

Reusable Chat Application for Django Developers

2019-03-18 Thread Ahmed Ishtiaque
Hello everyone, A couple of months ago I was trying to check if I can use any of the apps that appear in Django Packages Chat section but it seems like none of them are maintained very well. So I decided to build an open source chat project based on

Request & Response >> Device send HTTP request to web server

2019-03-18 Thread Sabuhi Shukurov
Hello! I need your help and assistance in my project. Currently we are developing project on the device, which is on arduino written on C low level, it is really difficult to handle do many things, we want to keep it as simple as we can, everything will rely on to the our web app(Django).

Re: Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Suresh Jeevanandam
Thanks a lot. Somehow it did not occur to me that this is the same problem as a group chat ... On Mon, Mar 18, 2019 at 7:10 PM Aldian Fazrihady wrote: > > On Mon, Mar 18, 2019 at 9:04 PM Suresh Jeevanandam > wrote: > >> Can you give some pointers on how you do that? In particular, will the >>

Re: Django 2.1.4: Permissions are not updated after migrations

2019-03-18 Thread Yevgeny Bar Lev
Thanks a lot, Simon! The delete and create sounds like the perfect solution in my case, since I don't have a lot of permissions assigned. Will try it now on a test case. On Mon, Mar 18, 2019 at 3:53 PM Simon Charette wrote: > > Would the following strategy work? delete all app permission and

Re: Django 2.1.4: Permissions are not updated after migrations

2019-03-18 Thread Simon Charette
> Would the following strategy work? delete all app permission and use, create_permissions to recreate them Yes, but that will delete all the user and group permissions as well; you'll have to reassign them. > How do I know to which db table a given permission points? Or does it point to a

Re: Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Aldian Fazrihady
On Mon, Mar 18, 2019 at 9:04 PM Suresh Jeevanandam wrote: > Can you give some pointers on how you do that? In particular, will the > client be notified on the same web socket it established with Django server? > When the JS client established the Web Socket connection, you create a channel

Re: Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Suresh Jeevanandam
Can you give some pointers on how you do that? In particular, will the client be notified on the same web socket it established with Django server? On Mon, Mar 18, 2019, 6:07 PM Aldian Fazrihady wrote: > Hi Suresh, > > Yes, celery task can send websocket message to client/JS. > My celery task

Re: Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Suresh Jeevanandam
It's a closed network application. So, no access to firebase. On Mon, Mar 18, 2019, 5:58 PM Manas Nikam wrote: > You can use firebase cloud messaging > > On Mon, Mar 18, 2019, 5:50 PM Suresh Jeevanandam > wrote: > >> In my web application based on Django and Channels, the user makes a >>

Re: Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Aldian Fazrihady
Hi Suresh, Yes, celery task can send websocket message to client/JS. My celery task uses websockets Python module to contact a Daphne channel belongs to JS client. On Mon, Mar 18, 2019 at 8:28 PM Manas Nikam wrote: > You can use firebase cloud messaging > > On Mon, Mar 18, 2019, 5:50 PM Suresh

Re: Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Manas Nikam
You can use firebase cloud messaging On Mon, Mar 18, 2019, 5:50 PM Suresh Jeevanandam wrote: > In my web application based on Django and Channels, the user makes a > web-socket and send a JSON message. This initiates a celery task and a > reference to the task is sent to the user. Now, I want

Re: test if model object fits into QuerySet without executing SQL?

2019-03-18 Thread jgibson
result = qs1.difference(qs2) if Result is length 0 then all of 1 is in 2. On Monday, March 18, 2019 at 8:15:19 AM UTC-4, Thomas Klopf wrote: > > Hello, > Yes exactly that, if mo1 is in qs2. BUT without running the SQL on the > database, if possible. > > Thanks! > Tom > > > On Friday, March

Re: test if model object fits into QuerySet without executing SQL?

2019-03-18 Thread Jani Tiainen
Hi, Note that Django querysets are lazy. So running: qs1 = MyModel.objects.all() As is, doing that doesn't execute any queries. If you want filtered objects, just add filter: qs2 = qs1.filter(color="blue") qs2 is not even evaluated yet. You need actually cause something that evaluates

Channels - Updating client when the long running celery job finishes

2019-03-18 Thread Suresh Jeevanandam
In my web application based on Django and Channels, the user makes a web-socket and send a JSON message. This initiates a celery task and a reference to the task is sent to the user. Now, I want to update the client when the results are ready. The possible solutions I thought were: 1. The

Re: test if model object fits into QuerySet without executing SQL?

2019-03-18 Thread Thomas Klopf
Hello, Yes exactly that, if mo1 is in qs2. BUT without running the SQL on the database, if possible. Thanks! Tom On Friday, March 15, 2019 at 1:34:34 PM UTC+1, jgi...@caktusgroup.com wrote: > > Tom, > > Could you clarify "fits into"? > > qs1 = Table.objects.all() > qs2 =

Django 2.2 release candidate 1 released

2019-03-18 Thread Carlton Gibson
We've made the final (hopefully) release on the way to Django's next major release, Django 2.2! Check out the blog post: https://www.djangoproject.com/weblog/2019/mar/18/django-22-rc1/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django 2.1.4: Permissions are not updated after migrations

2019-03-18 Thread Yevgeny Bar Lev
Thanks Simon! Two questions: a) Would the following strategy work? delete all app permission and use, create_permissions to recreate them b) How do I know to which db table a given permission points? Or does it point to a model? On Mon, Mar 18, 2019 at 6:38 AM Simon Charette wrote: > Hello