11 points · by jstalin · 14y ago · 9 comments
But, when I try to find info on getting python running as a web service on debian/mysql/nginx, I can't seem to find any easy way of getting things set up for python experimentation and learning.
Can anyone help out?
I recommend starting out with templating all of your code, because if you do wind up switching to a different framework, you'll regret having your HTML/CSS/JS in with your python code.
If you setup a VM with a Debian netinstall, it will let you setup Apache / Python / PgSQL right out of the box. From there, I would recommend installing mod_wsgi and following a tutorial for it.
It's more complicated than just using web.py or Django, but you'll have a lot better understanding of how the entire request works.
Micro-framework: http://flask.pocoo.org
Full-stack framework: http://www.djangoproject.com