Hi !
I have a problem to setting up the template :

NameError at /foo/ global name 'get_template' is not defined Request Method:
GET  Request URL: http://127.0.0.1:8000/foo/  Exception Type:
NameError  Exception
Value: global name 'get_template' is not defined  Exception Location:
/home/tulap/cit2/../cit2/utente/views.py
in login, line 8  Python Executable: /usr/bin/python  Python Version: 2.5.1

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)


In the settings.py there is :

TEMPLATE_DIRS = (
  "/home/marco/cit2/templates"

)

And there is a file called prova.html in the directory.

Thanks

--~--~---------~--~----~------------~-------~--~----~
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