Sunday, January 29, 2017

Re: Wiring django-channels to html without javascript?

Yes, the client application connecting to the websocket server can be an user using an interactive console, a python application or any other software in any language.

But if your objective is to have a webpage then no, unfortunately web browsers can only run javascript, if you really dislike javascript you may even use some other language that can transpile to js such as coffescript or typescript, but at the end the browser will still run javascript.

I still dream of the day that we will be able to run python on the browser

On Sun, Jan 29, 2017 at 5:51 PM, Nikoleta Misheva <nitheism@gmail.com> wrote:
I used the console to test my app but now I want to wire my django-channels app to the html but I don't know any JS so is it possible to wire django-channels to html without using javascript? If it is possible how? Here you can check my consumers.py and html template. I know less than 5% JS so any help would be appreciated :)

--
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/2ce32eb5-e117-48f1-9fa8-eb4d050ea142%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/CAFWa6tKpGLe5Q0iPq%3D1_9n23%3Dmgh-Y7tTx_EJ--pwhfTzYWybg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment