even down to running two different servers for that project, one normal WSGI one and one ASGI one to let you do async things.
Are you aware of a project that does what you've mentioned? Would you point me to it? I think that looking at the config files could help me set this up.
Juarez
On Monday, November 5, 2018 at 9:24:39 PM UTC-2, Andrew Godwin wrote:
Hey,You can just add channels to an existing Django project and only use it for the bits you need it for - even down to running two different servers for that project, one normal WSGI one and one ASGI one to let you do async things.You shouldn't migrate any existing code to channels - just add it and then use it for the new bits you need it for, basically.AndrewOn Sun, Nov 4, 2018 at 1:16 PM <j...@brickabode.com> wrote:Greetings y'all!--I'm looking for recommendations regarding adding Channels to an existing Django 1.11 application.Every guide I've followed assumes that one is using Channels to build an application from scratch, and that is OK to replace django's native calls by Channels.Channels' documentation suggests different ways of setting up authentication, sessions, etc, but it is not clear to me that every feature of Django 1.11 has its counterparton Channels. I am afraid I'll spend days migrating my system to Channels only to figure out that a particular feature of Django is not supported by Channels. In order to avoid that I've decided to ask y'all first.Ideally, I would like to set Channels on a particular Django app, not on the entire Django project (other apps would not be aware of Channels being setup). Is that possible?If this is not possible, my best guess is that I would need to add Channels to an independent Django project, and have these two servers communicate. This 2nd server would point to the same database as the 1st, and thus would be able to run authentication with same credentials, among other data related operations.I appreciate any guidance on this matter.
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...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a8c4164a- .ffbb-4975-8d48-f8f058466b4d% 40googlegroups.com
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5cba75bd-19cc-4a10-97bc-e85ffc51cca3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment