[Twisted-web] Nevow application layout

Manlio Perillo manlio_perillo at libero.it
Fri Aug 4 04:53:49 CDT 2006


Hi.

Since now I'm going to define the structure of my application I'm try to
understand the best layout (for source files).

Valentino suggest this:
  /ProjectName
    /static
       /i   - images
       /s   - styles
       /j   - javascript
    /template
    /doc
    /database - sql files
    /bin      - various scripts
    /projectname - python modules
       /web  - for the web stuff
       /storage - for the data layer
       /other_eventual_twisted_using_subparts
      common_python_modules.py


But I don't understand why this is better then:
- store template dir inside the web dir
- the same for static dir
- store the database files/dir inside the storage dir

Moreover, why use short names for static subdir?

Apart this, I like this general structure.
I have added a section to the nevow-deployment (not sure this is the
right place) in my private branch.



Thanks  Manlio Perillo



More information about the Twisted-web mailing list