Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1006 Bytes

README.md

File metadata and controls

36 lines (21 loc) · 1006 Bytes

Build Status Coverage Status

tornado-structure

Python tornado project structure

Create Virtualenv and Install requirements

  • Create virtualenv: python3 -m venv env
  • Activate virtualenv: source env/bin/activate
  • Install requirements: pip install requirements.txt

Run sever

python app.py

Set port using command line:

python app.py --port=8000

Enable DEBUG by set environment variable:

export DEBUG=1

Run tests

python -m unittest

Run scripts

python -m sample.scripts.hello

Reference

  1. Repository Structure and Python
  2. Django Project Structure