import logging from svarga shortcuts import render_to_response from mo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
import logging
from svarga.shortcuts import render_to_response
from models import *
def index():
t = Test()
t.name = '134'
t.value = '1234'
t.number = '321'
t.save()
logging.info(Test.name)
logging.info('test')
return render_to_response('index.html', {
'data': Test.objects.filter(Test.name=='134')
})