Python tornado project structure
- Create virtualenv:
python3 -m venv env
- Activate virtualenv:
source env/bin/activate
- Install requirements:
pip install requirements.txt
python app.py
Set port using command line:
python app.py --port=8000
Enable DEBUG by set environment variable:
export DEBUG=1
python -m unittest
python -m sample.scripts.hello