2011-09-15 11 views
2

Pythonは私のために新しく、私はファイルコードを整理するのに問題があります。私のPythonプロジェクトをMVC paternのために整理します。

は、私のような何かをしたい:

./ 
/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 

をそしてある本当の問題は、ファイルツリーがPython環境では正しいことでしょうか?

+0

[Google App Engineのためのプロジェクト構造]の可能な重複(http://stackoverflow.comを/ question/48458/project-structure-for-google-app-engine) – systempuntoout

+0

私はGAE/Pythonフレームワークを作成しました。これは、そのようなディレクトリ構造を提供し、こちらをご覧ください:http://code.google.com/p/gae-mvc-engine/詳細な文書はhttp://blog.adamcrossland.net/asset/show/mvc-engine-docs –

+0

@Adam Crossland okで確認できます。数時間前にあなたのプロジェクトがまだ生きているかどうかを知るためのメールをお送りしました。ありがとう –

答えて

1

はい、あなたの構造が機能するか、あなたは私の例を見つけた場合、ここで有用なのは、私が小さいApp Engineアプリケーション整理方法は次のとおりです。

. 
├── 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 
関連する問題