I've recently rediscovered Python and found out that it can be used as a web scripting language as well, but I've had little luck getting it to work well on my server.
I have mod_python installed on my Apache installation and can choose between regular python files and psp files (scripting python inside html... like PHP or classic ASP), but both reject most of the standard Python code I try to use. Even this little script (taken from the Python tutorial) that gives a few numbers in the Fibonacci sequence fails:
- Code: Select all
a, b = 0, 1
while b < 10:
print b
a, b = b, a+b
In terms of web programming, PHP is my "native" language and I've grown rather used the extensive documentation on PHP. Every obscure function and use is documented and explained in detail; Python's web scripting documentation seems utterly deficient in comparison.
So far, I've gathered most people who develop web apps with Python use a "web framework". I've probably been out of it, since I don't actively work as a programmer, but I had never even heard of the term until two days ago, when I started researching Python. Since then, I've gathered there are web frameworks for PHP. Is it even possible to develop PHP quality web apps with Python without a framework?
It isn't a really big deal to me to develop in Python anyway... just thought it would be another cool thing to learn. Any help would be appreciated!

