Skip to content

Instantly share code, notes, and snippets.

@jy95
Created December 14, 2017 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jy95/4289bc5cd04778198c81008986d6debc to your computer and use it in GitHub Desktop.
Save jy95/4289bc5cd04778198c81008986d6debc to your computer and use it in GitHub Desktop.
Django demo
1. Dans oscar/settings.py ; s'assurer que leur worker soit ko
# CHANNEL_LAYERS = {
# "default": {
# "BACKEND": "asgiref.inmemory.ChannelLayer",
# "ROUTING": "notification.web_sockets.routing.channel_routing",
# },
# }
2. Dans templates/base.haml ; commenter le js
-# %script{type: "text/javascript", src: "{% static 'js/notification.js' %}"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment