Sunday, October 21, 2018

Re: [channels] 2.1.4 - Removing Javascript library entirely

Ok, thank you very much for your answer!

Dana nedjelja, 21. listopada 2018. u 18:47:14 UTC+2, korisnik Andrew Godwin napisao je:
That's about right - you should ship and maintain the file yourself now.

Andrew

On Sun, 21 Oct 2018, 09:04 kradem, <kra...@gmail.com> wrote:
Hi everyone!


> It was very unmaintained, and having it in here sends the wrong message about it being useful and reliable.

I used to include the javascript in my templates with:

<script src="{% static 'channels/js/websocketbridge.js' %}"></script>

I suppose the only change I should do now is to include the javascript file from the 2.1.3 channels version in my project static folder and reference it with (if js is the folder for my project's javascript)::

<script src="{% static 'js/websocketbridge.js' %}"></script>

Am I missing something else here?

--
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/e5a5eca8-54f1-49f8-9159-f7b7c4de847e%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/7bc0b6e4-420b-4b2c-9d9f-f63d3d981693%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment