#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
-
Notifications
You must be signed in to change notification settings - Fork 0
ruoshui1314/django_websocket_demo_with_channels
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published