urls.py ----------------------------------------- from django.conf.urls.defaults import * urlpatterns = patterns('',(r'^$', 'dj.views.index'),) ----------------------------------------- views.py ----------------------------------------- from django.template import Context, loader from django.http import HttpResponse def index(request): t = loader.get_template('world.html') c = Context({ 'hello_world': "Hello World!", }) return HttpResponse(t.render(c)) ----------------------------------------- world.html -----------------------------------------
{{ hello_world }}