开发者

Organize my python project for MVC patern,

Python is new for me, and I've got problems to organize my files codes.

I want to do something like :

./
 /views
        index.html  // Django files

 /controlers
        main.py

 /models
        Greeting.py  // I take the same classe exemple of Google App Engine Website
 /libs
        xxx.py //some Lib and tools classes  
 /static
        /js
        /css
        /images

And The real problem is is t开发者_StackOverflowhat files tree is correct in python environment?


Yes your structure works or if you find my example useful here's how I organize a smaller app engine app:

.
├── app.yaml
├── conf.py
├── main.py
├── model.py
├── static
│   ├── 1.gif
│   ├── 2.gif
│   ├── 3.gif
│   ├── 4.gif
│   ├── anim.gif
│   ├── main.css
│   ├── main.js
└── templates
    ├── base.html
    ├── error.html
    ├── info.html
    ├── upload.html
    ├── user.html
    └── welcome.html
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜