Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#5299 closed (fixed)

mod_python documentation issues

Reported by: Jeremy Dunck Owned by: David Reynolds
Component: Documentation Version: master
Severity: Keywords:
Cc: Graham.Dumpleton@… Triage Stage: Accepted
Has patch: no Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Posting for Graham Dumpleton, since his attempt was rejected as spam:

In #5280 the issue of some
mistakes in latest changes to mod_python documentation have been made.
In reviewing associated #4296 and
the changes, I note that the issues I brought up in mod_python
documentation and referenced in the ticket were not addressed. Ie., as
described in:

The problem is that people who use development server (and later move
to mod_python), can find their application do not work as they have
inadvertently used the fact that it is possible to list module paths
in or perform imports in subdirectories that don't import via
the top level site name. Instead they do them relative to the site
name instead.

For this to work when moved to mod_python they must also add the
actual site directory to PythonPath in addition to the parent
directory. I still don't see this as being documented

Change History (4)

comment:1 Changed 13 years ago by Simon G. <dev@…>

Needs documentation: set
Triage Stage: UnreviewedAccepted

Please try to write something that does please everyone.

comment:2 Changed 13 years ago by David Reynolds

Owner: changed from nobody to David Reynolds

comment:3 Changed 13 years ago by David Reynolds

Resolution: fixed
Status: newclosed

Seems to be already addressed.

comment:4 Changed 13 years ago by Malcolm Tredinnick

To clarify the above comment, we already mention explicitly that the parent of any directory you import from must be in the Python path. That covers the case when somebody has a project directory and is import relative to that (since it's the parent of what they are importing).

What else do you think needs adding?

Note: See TracTickets for help on using tickets.
Back to Top