[google-appengine] Re: typical scenario

2009-01-12 Thread Gipsy Gopinathan
I guess you can use the import statement in the other directories to access anything from DB floder lets say if you have models.py in DB folder contains your data model classes then in the other directories you can access it by from DB import models On Mon, Jan 12, 2009 at 9:09 AM, arnie

[google-appengine] Re: typical scenario

2009-01-12 Thread Alexander Kojevnikov
Try adding an empty __init__.py file into your DB folder. This marks the DB folder as a 'package' and allows you to import modules from it. More info at: http://www.python.org/doc/2.5.2/tut/node8.html On Jan 13, 2:09 am, arnie wrote: > Hi all > I have three folders > BusinessList > Conversion >

[google-appengine] Re: typical scenario

2009-01-13 Thread arnie
I have tried both the method of import statement and __init__.py file also created the PYTHONPATH variable in system settings [windows xp] and given even the path C:\App\DB\ but it is not working What i am be able to understand is that the python runtime is not able to find the folder DB --~--~-

[google-appengine] Re: typical scenario

2009-01-14 Thread arnie
I am stuck in a very big problem and could not find any solution for this Writing import DB in the BusinessList folder's businesslist.py file does not work. I have also added __init__.py file [empty] in the DB folder but of no use. Also I have created PYTHONPATH environment variable and gives it t

[google-appengine] Re: typical scenario

2009-01-17 Thread James Ashley
I really don't know much about WSGI, but this works for me. As I understand it, you should probably have 1 WSGI app in the "root" folder. It will do whatever's appropriate to load whichever "sub-app" needs to run. Then they should both be able to import from the DB folder. i.e. / -- app.yaml

[google-appengine] Re: typical scenario

2009-01-17 Thread James Ashley
http://groups.google.com/group/google-appengine/browse_thread/thread/2baa48709bb94bd3?hl=en has an excellent answer about dispatching to multiple WSGI apps. On Jan 17, 12:11 pm, James Ashley wrote: > I really don't know much about WSGI, but this works for me. > > As I understand it, you should p