Skip to content

Instantly share code, notes, and snippets.

@JeOam
Last active April 18, 2023 06:52
Show Gist options
  • Save JeOam/ee5a7022dd5616fa6eaf to your computer and use it in GitHub Desktop.
Save JeOam/ee5a7022dd5616fa6eaf 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