Skip to content

ruoshui1314/django_websocket_demo_with_channels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#project is a websocket with django channels

#test
-------------------

python3 manage.py test chat.tests

#running as below
-------------------
python3 -m venv <path/to/virtualenv>

source <path/to/virtualenv>/bin/deactive

python3 manage.py migrate

python3 manage.py makemigrations

python3 manage.py runserver 0.0.0.0:9000

#uwsgi notification: uwsgi should installed by pip3
-------------------

daphne django_websocket.asgi:application --port 9001 & uwsgi --http :9000 --module django_websocket.wsgi

#add nginx with uwsgi
-------------------
uwsgi --socket ./../web/compass.sock --wsgi-file ./django_websocket/wsgi.py --chmod-socket=666 --master --processes 2 --threads 2 & daphne django_websocket.asgi:application --port 8001

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published