Hello, You may use websockets on client and asyncio on serves as it is done here: https://github.com/throwable-one/chat-async/ But websockets require modern client and asyncio require python 3.4 (but asyncio is standard and worth using, anyway)
Ilya Kazakevich, JetBrains PyCharm (Best Python/Django IDE) http://www.jetbrains.com/pycharm/ "Develop with pleasure!" >-----Original Message----- >From: [email protected] >[mailto:[email protected]] On Behalf Of carlos >Sent: Thursday, June 19, 2014 5:25 AM >To: [email protected] >Subject: Re: Chat application > >Hi, maybe not all with django, maybe you need learn gevent >http://www.gevent.org/ > >socket.io >http://socket.io/ > > and here is example for a chat with redis and django + gevent + socketio etc. >https://github.com/rlr/django-gevent-socketio-redis-chat-example > > >Cheers > > >On Wed, Jun 18, 2014 at 4:46 PM, Pedro <[email protected]> wrote: > > > Hello, > > i'm working in a mobile app that depends of a Django server (to manage >user data and stuff). > This mobile app is about a social network with users interacting. It > should >have a chat system, where two or more users can send and receive messages >and photos. > > I'm thinking in the best way to implement the communication and the >model on the server. My first idea is to use a simple model with rooms and >messages (each message belong to a room). To send messages from a client to >the server, i think i could use http requests, like GETs and POSTs, where i >would >implement syncronization methods and stuff. > > Is this the best approach to solve this problem on Django? > > > ---------- > Pedro Alves > > Mestrando em Ciência da Computação > Universidade Estadual de Campinas > > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit >https://groups.google.com/d/msgid/django-users/CACW_pa0Dfom4Eydop5qed >MMP5fbuBx-yZAUgDrhDApfewDFWbQ%40mail.gmail.com ><https://groups.google.com/d/msgid/django-users/CACW_pa0Dfom4Eydop5qed >MMP5fbuBx-yZAUgDrhDApfewDFWbQ%40mail.gmail.com?utm_medium=email >&utm_source=footer> . > For more options, visit https://groups.google.com/d/optout. > > > >-- >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 >[email protected]. >To post to this group, send email to [email protected]. >Visit this group at http://groups.google.com/group/django-users. >To view this discussion on the web visit >https://groups.google.com/d/msgid/django-users/CAM-7rO0052uKjqh%3D5UEt- >%2BGo1-muj3k-Yu7%2BFKjVFLCOTLi2AA%40mail.gmail.com ><https://groups.google.com/d/msgid/django-users/CAM-7rO0052uKjqh%3D5UEt >-%2BGo1-muj3k-Yu7%2BFKjVFLCOTLi2AA%40mail.gmail.com?utm_medium=ema >il&utm_source=footer> . >For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/020301cf8b9f%2467203a60%243560af20%24%40JetBrains.com. For more options, visit https://groups.google.com/d/optout.

