diff --git a/index.py b/index.py index b15dba8..7257e93 100755 --- a/index.py +++ b/index.py @@ -1,18 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -from django import template -from django.conf import settings +import sys +from webtools import Web -settings.configure() -t = template.Template(open('index.html','r').read()) -c = template.Context({}) -v = t.render(c) - -print('Content-type: text/html') -print() - -print(v) - - -# Web.render('index.html') +Web.render('index.html')