Revert "Changed index.py to test django"

This reverts commit 443f12f553.
This commit is contained in:
Thomas FORGIONE 2015-04-18 17:30:04 +02:00
parent 02884bbaf9
commit 106fe443ad
1 changed files with 3 additions and 14 deletions

View File

@ -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')