1 from django.shortcuts import render_to_response
2 from django.template import RequestContext, Context
3 from eventmanager.conteudo.models import Noticia
5 def noticia(request, nid):
6 n = Noticia.objects.get(pk=int(nid))
7 c = Context({'noticia': n})
8 return render_to_response('noticia.html', c,
9 context_instance=RequestContext(request))