On Fri, 2 Sep 2005, Scott Oertel wrote:
> Scott Oertel wrote:
>
> > I'm having an issue with mod_python.publisher,
> >
> > supposedly i should be able to just place this code
> >
> > def index():
> >return "This is only a test."
> >
> > into test.py and when placed into my browser it should run the index
> > function by default, but instead i get a 404 error.
Hi Scott,
The question you're asking is pretty specific to mod_python; you may get
better help by asking the mod_python mailing list.
http://mailman.modpython.org/mailman/listinfo/mod_python
We on Tutor don't have special expertise on mod_python, and you may be
better served by asking the mod_python folks for help.
Anyway, take a closer look at:
http://www.modpython.org/live/current/doc-html/hand-pub-alg-trav.html
Their example functions all take a request object. Are you sure you don't
need to include the request as an argument of the default index handler?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor