Simple mvc python framework

Is there any lightweight webframework mvc that is not required for server installation? I need something simple that I can just copy over to shared hosting. And it should handle other urls which are localhost / test.py , something like this localhost / Blog / test

+2


a source to share


4 answers


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.)

+4


a source


Checkout web2py. It seems to be about the simplest python based web server I can think of.



Django can do it, it's healthy, but it comes with its own development server.

+3


a source


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.

+2


a source


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.

+1


a source







All Articles