These are chat archives for django/django

12th
Apr 2018
1rjun
@1rjun
Apr 12 2018 06:04
hello guys
is django rest good option to make apis for the react native mobile application
Byeong Gyu Choi
@gyukebox
Apr 12 2018 06:37
sure why not
Jules
@ripoul
Apr 12 2018 07:25
Hi

what is the right import to use something like this :

message = {"message":msg}
Channel('chat').send(message, immediately=True)

using channels

from channels import Channel
doesn't work
Byeong Gyu Choi
@gyukebox
Apr 12 2018 10:11
any error logs or tracebacks?
Jules
@ripoul
Apr 12 2018 10:50
from channels import Channel
ImportError: cannot import name 'Channel'
Roel
@roelzkie15
Apr 12 2018 10:51
are you already on virtualenv? @ripoul
Jules
@ripoul
Apr 12 2018 10:51
yes
i saw the code here : django/channels#59
Roel
@roelzkie15
Apr 12 2018 10:53
if so please check if django channel is included in the pip
Jules
@ripoul
Apr 12 2018 10:54
yes it is
Roel
@roelzkie15
Apr 12 2018 10:56
did you already follow the https://channels.readthedocs.io/en/latest/installation.html sort of installation problem
Jules
@ripoul
Apr 12 2018 10:57
yes
i did the tuto too
Windson yang
@Windsooon
Apr 12 2018 12:43
Maybe you have a dir call channels already?
Nitesh Tosniwal
@sudonitesh
Apr 12 2018 13:10
Just signed up for Wikiwand, a cool new app that allows quick access to Wikipedia on the go. Get your invite here: http://lnc.hr/qXCkm
Ricardo Ara├║jo
@ricardomga
Apr 12 2018 15:23
hello to all
I have a project that i want to package into a whl with all it dependencies inside of that whl so when someone install it, instead of it looks for the dependencies in the Pypi it looks for the dependencies inside of a folder
something like pip install --find-links=./wheels --no-index -r requirements.txt
I want to have this logic inside of setup.py
so when I make pip install mypackage it will pull all its dependencies from ./wheels folder
is this possible?