from django.template import Context, loader
from django.shortcuts import render_to_response
from django.http import HttpResponse

def index(request):
    result=[1,2,3]
    t=loader.get_template('template/index.html')
    c=Context({
                'result' : result,
              })
    return HttpResponse(t.render(c))

'DJANGO' 카테고리의 다른 글

DJANGO #3. Python, Django 설치  (0) 2013.04.03
DJANGO #2. Tutorial 설명  (0) 2013.04.03
DJANGO #1. Django 정의 및 특징  (0) 2013.04.03
Tutorial Guide 만들어보자  (0) 2013.04.02
기존의 DB와 Django를 연동  (0) 2012.11.02

+ Recent posts