From accf7afda76d8c6a00d027c59e16c0084c838451 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Tue, 13 Mar 2012 23:54:15 -0700 Subject: index.html and import fix --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index f3982aa..4b544c6 100644 --- a/app.py +++ b/app.py @@ -1,11 +1,12 @@ +import os import random import string -from bottle import route, run +from bottle import post, route, run, static_file @route('/') def index(name='home'): - return '

Homepage

Insert widget here

' + return static_file('index.html', root=os.path.dirname(__file__), mimetype='text/html') @route('/s/:id') def sig(id='home'): -- cgit v1.3.1