Skip to content

Instantly share code, notes, and snippets.

@zengqingfu1442
Forked from JeOam/Structure.md
Created September 29, 2022 08:06
Show Gist options
  • Save zengqingfu1442/370aaf6e0fcd9c4a30dce21b0fa42c96 to your computer and use it in GitHub Desktop.
Save zengqingfu1442/370aaf6e0fcd9c4a30dce21b0fa42c96 to your computer and use it in GitHub Desktop.
Project Structure for Python (Tornado) Application

Project:

  • project/: A directory named with the project's name which stores the actual Python package
    • __init__py
    • app.py
    • settings.py
    • urls.py
    • models/
      • __init__.py
      • baes.py
    • handlers/
    • utils/
    • templates/ for html template
    • static/ for .png, .css, .cjs resources
  • tests/ for your tests
    • common.txt
    • dev.txt
    • production.txt
  • pytest.ini
  • scripts/ for that kind of command-line interface stuff
  • conf/
    • nginx.conf
    • supervisord.conf
  • docs/: directory containing project documentation
  • README.md
  • LICENSE
  • .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment