urlpatterns = patterns('',
url(r'^$', HomeView.as_view(),{'my_name':'wonderfan'}, name='home'),
)
from django.views.generic import TemplateView
class HomeView(TemplateView):
template_name = 'templates/home.html'
def get_context_data(self, **kwargs):
context = super(HomeView, self).get_context_data(**kwargs)
context['my_name'] = 'wonderfan'
return context
<p>This is my test</p>
<p>The value is { my_name } </p>