[Python] Directory structure best practice

75 views
Skip to first unread message

Walter Antolini

unread,
Oct 28, 2011, 10:29:23 AM10/28/11
to google-a...@googlegroups.com
Hi all,

I know this topic has already been treated several times, but I must ask again help to understand how to structure my application:

My application involves:
1) frontend
2) backend
3) JSON Web API

Also in the future I will also implement:

1) mobile web (for all other mobile phones)
2) Android / iPhone application
3) facebook application

Now I have considered a similar structure:

app.yaml
application.py
cron.yaml
/ app
    / config
    / controllers
    / db
    / lib
    / models
    / static
         / images
         / scripts
         / css
    views /

but with this structure I can not implement other modules.

What do you propose to me about?

Thanks in advance.

Walter Antolini

unread,
Nov 1, 2011, 9:34:42 AM11/1/11
to google-a...@googlegroups.com
Hi,

I can understand that not having an answer, that no one uses Python on Google App Engine.

For now I solved the problem by using the structure of django, replicated across multiple folders in order to have separate applications, everything is handled through "app.yaml", and a file handler that is responsible for managing libraries and common files to all applications.

thanks

Reply all
Reply to author
Forward
0 new messages