Simplest structure to convert python application to webapp?

I have a small python application that I would like to convert to webapp. I look at some frameworks like django.

I need suggestions for a very simple structure. All my webapps will have a text box and two buttons.

+3
source share
5 answers

Take a look at Bottle , great for simple webapps. Sample code from your website:

from bottle import route, run

@route('/hello/:name')
def index(name='World'):
    return '<b>Hello %s!</b>' % name

run(host='localhost', port=8080)
+3
source

CherryPy will serve you best if you are looking minimalist.

+2
source
+1
0

+1 .

Nevertheless, consider that the area usually grows when developing web applications in this text field, and these 2 buttons in the future need: templates, many routes, possibly translations, etc. Therefore, always consider using what will allow you to go into some powerful frameworks like web2py or Django.

0
source

All Articles