Skip to content

Instantly share code, notes, and snippets.

@kkas
Forked from JeOam/Structure.md
Created August 11, 2017 07:49
Show Gist options
  • Save kkas/10c02397ac087a8db534aba33970bef0 to your computer and use it in GitHub Desktop.
Save kkas/10c02397ac087a8db534aba33970bef0 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