[mod_python] How to handle multiple .py files using Apache 1.3.x and mod_python 2.7

Eustaquio Rangel de Oliveira Jr. eustaquiorangel at yahoo.com
Thu Apr 15 16:43:46 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jorey Bump wrote:

|It's much simpler than that. Try this in test.py:

|def hello(req):
|     x = "Hello, world!"
|     return x

|Then go to:
|  http://localhost/test.py/hello

Thanks again for your answer! :-)
Just one more question: I always will need to specify the function
inside the .py file? I mean, it will not work with I just put

http://localhost/test.py

Thanks!

- --
~    .--.     TaQ (Eustáquio Rangel)                  ((__-^^-,-^^-__))
~   |o_o |    Usuário registrado GNU/Linux no. 224050  `-_---' `---_-'
~   |:_/ |    email  : eustaquiorangel at yahoo.com        `--|o` 'o|--'
~  //   \ \   URL    : http://beam.to/taq                  \  `  /
~ (|     | )  ICQ    : 110103942                            ): :(
/'\_   _/`\  PGP key: 0x784988BB                           :o_o:
\___)=(___/  Eu gosto de GNU/Linux, e vc ? ;)               "-"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAfuXyb6UiZnhJiLsRApP5AJ0RxwbU2dgr0jVkghnRl6qvhuqUTgCfQbAW
TBXESzvDiU8ZgzjXMGH7JP8=
=fnbq
-----END PGP SIGNATURE-----


More information about the Mod_python mailing list