Project structure for Google App Engine

后端 未结 6 831
走了就别回头了
走了就别回头了 2020-12-12 09:06

I started an application in Google App Engine right when it came out, to play with the technology and work on a pet project that I had been thinking about for a long time bu

6条回答
  •  遥遥无期
    2020-12-12 09:32

    My usual layout looks something like this:

    • app.yaml
    • index.yaml
    • request.py - contains the basic WSGI app
    • lib
      • __init__.py - common functionality, including a request handler base class
    • controllers - contains all the handlers. request.yaml imports these.
    • templates
      • all the django templates, used by the controllers
    • model
      • all the datastore model classes
    • static
      • static files (css, images, etc). Mapped to /static by app.yaml

    I can provide examples of what my app.yaml, request.py, lib/init.py, and sample controllers look like, if this isn't clear.

提交回复
热议问题