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
|
#!/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')
|
|
||||||
|
|
Loading…
Reference in New Issue