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 #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from django import template import sys
from django.conf import settings from webtools import Web
settings.configure() Web.render('index.html')
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')