On 2 Aug 2007, at 14:11, Marco A. wrote:
> NameError at /foo/ global name 'get_template' is not defined

You haven't defined get_template anywhere in your import statements  
(below), so you've got an error in Python back. Define it so Python  
knows what it is.

A quick google tells me the appropriate import is:

        from django.template.loader import get_template

So try adding that

> I have this code in my view :
>
> from cit2  import utente
> from django.http import HttpResponse
> from django.template import Context, Template
>
>
> def login(request):
>     html = "HI"
>     get_template('prova.html')
>     return HttpResponse(html)


--
   Andy McKay




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to