Making a webapp using Bottle
Don't activate the virtualenv inside the script. If you do, the script won't be portable, it won't run on other computers, as that absolute path is specific to your computer. The virtualenv is part of the runtime execution environment, should not be part of the source code. Add a wrapper script that will activate the virtualenv and then run your app.




@route('/:anything')
def something(anything = ''):
    return template(index_html, author = anything)



I don't know bottle, but it seems to me that the default value setting anything = '' is pointless, because the path / should not match this route.



PEP8 dictates to put 2 empty lines before every global function declaration. So put 2 empty lines right before this code:


@route('/')
def index():
    return template(index_html, author = 'your name here')





This looks like a typo:


run(host = '0.0.0.0', port = port, debut = True)



You probably meant debug instead of "debut".