[google-appengine] Re: structure of appengine application

2009-05-06 Thread Panos

I have found a structure along the following lines pretty useful for
the python based apps:

app.yaml
index.yaml
app/
   controllers/
  A_ctl.py
  B_ctl.py
 ...
   models/
  A.py
  B.py
 ...
   util/
 ...
   templates/
 foo.html
 ...
   javascript/
 ...
   images/
 ...
platform/
   controllers/
  C_ctl.py
  D_ctl.py
 ...
   models/
  C.py
  D.py
 ...
   util/
   ...

As you see I put one model and one controller in each file. In the
platform, I put code that could be useful in other apps as well. In
fact platform could be a symbolic link to code shared by multiple
apps.

I hope this helps a little bit.

--Panos

On May 5, 8:22 pm, Pranav Prakash pra...@gmail.com wrote:
 You can look at following resources and their source code to under
 stand more

 * OpenSource projects on 
 AppEnginehttp://groups.google.com/group/google-appengine/web/google-app-engine...

 * Google AppEngine's Sample 
 Appshttp://code.google.com/p/google-app-engine-samples/

 * AppEngine cookbookhttp://appengine-cookbook.appspot.com

 --
 Regards,
 Pranav Prakash

 This life is more than ordinary

 On May 6, 2:48 am, Rishtal rish...@gmail.com wrote:

  Hi,

  First of all, I'd like to say i've learned a lot in this group. Thanks
  for all the great insight.

  I am developing a web app and wanted to know what is the best way to
  structure my development. I want to get the data/schemas done first.

  I've started to write my models.py. But how to write views.py and
  urls.py to correlate with my models.py? Can you show me any examples
  of structuring my schema, views.py, or urls.py. Basically do you have
  any examples of views.py or urls.py.

  What are the best practices to start writing a web app? i've done all
  the wireframing and diagramming as well.

  Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: structure of appengine application

2009-05-05 Thread Pranav Prakash

You can look at following resources and their source code to under
stand more

* OpenSource projects on AppEngine
http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects?hl=en

* Google AppEngine's Sample Apps
http://code.google.com/p/google-app-engine-samples/

* AppEngine cookbook
http://appengine-cookbook.appspot.com

--
Regards,
Pranav Prakash

This life is more than ordinary

On May 6, 2:48 am, Rishtal rish...@gmail.com wrote:
 Hi,

 First of all, I'd like to say i've learned a lot in this group. Thanks
 for all the great insight.

 I am developing a web app and wanted to know what is the best way to
 structure my development. I want to get the data/schemas done first.

 I've started to write my models.py. But how to write views.py and
 urls.py to correlate with my models.py? Can you show me any examples
 of structuring my schema, views.py, or urls.py. Basically do you have
 any examples of views.py or urls.py.

 What are the best practices to start writing a web app? i've done all
 the wireframing and diagramming as well.

 Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---