Revert "Changed index.py to test django"
This reverts commit 443f12f553
.
This commit is contained in:
parent
02884bbaf9
commit
106fe443ad
17
index.py
17
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')
|
||||
|
|
Loading…
Reference in New Issue