Deploying Django app with Channels on Linux Hosting

46 views
Skip to first unread message

Manjunath

unread,
Oct 3, 2018, 5:43:51 PM10/3/18
to Django users
Hi all,
I have developed a simple app using django channels.
 
I would like to deploy it on a linux hosting provider (Currently I have account with mochahost.com - Web Hosting:mocha package) & I have deployed the app there.
All features of the app are working except for web sockets which give the following error: Error during WebSocket handshake: Unexpected response code: 404

The app in local development system works fine without a glitch but the ASGI layer is not working after deployment.

My current host provider is running pyhon apps using  Passenger.

Is there any extra settings I need to do to setup the Socket layer?
Kindly help me in this issue.

Package versions used:
Python - 3.6.6
Django - 2.1.1
Channels - 2.1.3
Channels_redis - 2.3.0


Hope to get help for this issue..

Thanks & Regards,
Manjunath

Andrew Godwin

unread,
Oct 3, 2018, 5:48:23 PM10/3/18
to django...@googlegroups.com
Hi there - it sounds like your host does not support websockets. You should check with them for more.

Andrew

--
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/e39d3fb8-bad0-4852-a3df-aa52ebf45d6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Manjunath

unread,
Oct 4, 2018, 1:19:34 AM10/4/18
to Django users
Hi Andrew,
I checked with my host providers. They are telling that websockets are supported & I should check my code. :(
Reply all
Reply to author
Forward
0 new messages