initial_sockpuppet
command helps you to set up a JavaScript build flow with Webpack. If you don't want to do this you can use the following in your templates to load the required JavaScript.settings.py
to configure Channels.settings.py
where we need to add the following.django-channels
in your project you can take a look at the source code of the routing file in Sockpuppet and amend your routing as needed.package.json
your_app/javascript
, compile them and place the output in the folder dist/js/
.STATICFILES_DIRS
in settings it will pick that compiled JavaScript and you can use it in templates.django-channels
you could use Redis as a session storage. The library django-redis
has instructions to set that up.