Skip to content

Standard layout for Python web applications #6

@abitrolly

Description

@abitrolly

How many hours did you spend trying to figure out how your new open source project works? Looking through Vagrant and Docker files, learning Ansible and setup.py... What if there was a single entrypoint and a set of conventions, so that your editor can detect and quickly give you all clues that are necessary to run and debug your project as if it was in production? Let's try to define some of those yak shaving conventions.

  • .wsgi file with entrypoint to your web application should be at the top
  • .wsgi is named after your app/project (fedora-packages.wsgi)
  • top level static directory with static resources (images, css, ...) and README.md explaining how they are mapped (URL on the webserver) and deployed (CDN, webserver config)
  • top level requirements.txt file or requirements/ dir for automated dependency analysis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions