Simple mvc python framework
You should probably check out Flask or Bottle , two good Python microframes. With an appropriate "main" Python script (to initialize your application and post requests to it) and rules mod_rewrite
in place, you can probably get closer to your goal of "just copy [ing] to shared hosting", with good URLs.
Flask has good documentation on CGI deployment that you might need to use on your shared host. (If your host supports FastCGI or mod_wsgi
, these deployment options are preferred.)
a source to share
Web2py includes everything (ssl enabled web server, sqlite sql based transaction safe database, web IDE, web database frontend) in one package. The web2py binaries for Windows and Mac also include Python itself. web2py requires no configuration or installation and can work with a USB stick. It was originally developed as a learning tool for MVC.
a source to share
checkout https://github.com/salimane/bottle-mvc or https://github.com/salimane/flask-mvc . They are templates that can help you get started with controllers, models in separate folders. They are based on micro archives with bottles and flasks, no gimmicks, they give you the flexibility to plug in whatever modules you want.
a source to share