this project is a showcase of sync/async development using django, with tests
$ docker run -d -e POSTGRES_PASSWORD=pass -e POSTGRES_USER=user -e POSTGRES_DB=db_name \
--rm --name temp_postgres -p 5432:5432 postgres:15.0-alpine
$ pyenv virtualenv 3.10.6 teste_async_env
$ pyenv activate teste_async_env
$ pip install -r requirements.txt
$ ./manage.py migrate
$ ./manage.py fill_db
$ ./manage.py startapp simple_app
$ pytest
$ curl -v -X GET http://localhost:8000/dev/
$ curl -v -X POST http://localhost:8000/dev/ --data '{"name":"a","age":"20", "level":"junior"}'
$ curl -v -X DELETE http://localhost:8000/dev/?id=2
- https://realpython.com/intro-to-python-threading/
- https://realpython.com/python-gil/
- https://stackoverflow.com/questions/27435284/multiprocessing-vs-multithreading-vs-asyncio-in-python-3
- https://docs.python.org/3/library/asyncio-task.html
- https://channels.readthedocs.io/en/stable/installation.html
- https://docs.djangoproject.com/en/4.1/topics/async/
- https://code.djangoproject.com/ticket/31949
- https://wersdoerfer.de/blogs/ephes_blog/django-31-async/