At 04:35 AM 10/27/01 -0700, Chuck Esterbrook wrote:
>At 10:39 AM 10/27/2001 +0200, Georg Balmer wrote:
>>I have 2 basic questions
>>How do you layout the directory structure ?
>>or case B:
>Case B. Mingling your projects with Webware is a bad idea. It makes it
>harder to upgrade Webware and confuses people into thinking they have to
>modify Webware to make Webware apps.
I agree. And I recommend using the MakeAppWorkDir.py script that can be
found in the Webware/bin directory to create a separate working directory,
complete with its own config files, etc. That way, you don't have to
modify the Webware directory at all.
Then you can add your own library directories into the directory that you
created with MakeAppWorkDir.py. So my directory structure looks like this:
/Contexts - I added this directory
/Lib - I added this directory
/Static - I added this directory for static content to be served
directly by Apache
From my servlets I can import Python modules out of Lib using for example:
from Lib.SitePage import SitePage
- Geoff Talvola