Python Forum

Full Version: How to Create a web server pointing to a folder using python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Please help me in creating the webserver pointing to a folder using python programming.

At present am using cmd line argument 

python -m SimpleHTTPServer 8888

But now i want to implement using python code.
Twisted is pretty good. But really, if you're serving static/flat files, you should use something that's been doing that for a while, like nginx or apache.