A Proof Of Concept, an exercise implemntation of an asyncio-based WSGI
webserver for django.
Also contains a half-cooked HTTP parser made with python generators.
py.test
Create the app:
django-admin.py startproject testapp
Run the asyncserver
PYTHONPATH=testapp python -m djasync.webserver --host localhost --port 8000 testapp.wsgi.application
-
install pyenv
-
install python 3.4:
pyenv install 3.4.0 && pyenv local 3.4.0
-
create virtualenv:
pyvenv virtual
-
activate virtualenv
source virtual/bin/activate
-
install required python packages
pip install -r requirements.txt