Re: Jinja2 & Django 1.3 Integration - Example?

2011-04-06 Thread Shawn Milochik
Line 16 (where you say the error occurs) is an import line. So this is
probably a Python or Jinja2 issue. Try to do a very simple Python
script using a bare-bones Jinja 2 template and confirm that everything
is working before trying to troubleshoot a whole Django app.

http://jinja.pocoo.org/docs/intro/#basic-api-usage

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Jinja2 & Django 1.3 Integration - Example?

2011-04-05 Thread deefr
Hello-

I've been reading 
http://docs.djangoproject.com/en/dev/ref/templates/api/#using-an-alternative-template-language

and am interested in integrating Jinja2 with my Django 1.3 project.
The only useful example I have found is the following snippet:

http://djangosnippets.org/snippets/2063/

I get the following error for Line 16 in the above snippet.

'module' object has no attribute 'Template'


Can anyone tell me what I'm doing wrong, point me in the right
direction, or provide an up-to-date & working example similar to the
snippet above?

Thank you in advance.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.