Following this 
guide<http://rosslawley.co.uk/2010/07/django-12-and-jinja2-integration.html> I 
was able to use jinja2 templates very quickly -- I just call coffin.shortcuts 
import render_to_response

However, following the djangobook<http://www.djangobook.com/en/2.0/chapter14/> 
example 
for setting up authentication:

from django.contrib.auth.views import login, logout

urlpatterns = patterns('',
    # existing patterns here...
    (r'^accounts/login/$',  login),
)

(which calls my jinja2 template located at registration/login.html)

I get an error which says "jinja2 and django don't like each other" ... aka 
*what are these ()s?*

If it is helpful, here is the login 
code<https://github.com/django/django/blob/master/django/contrib/auth/views.py#L25>.
 
I don't see where the template is defaulting back to django... but I am 
guessing it is somewhere in there. Monkey patching this code seems like a *
bad* idea to me.

Is the right way to handle this to have two sets of base templates? One for 
auth and one for the rest of my site?


( reposted 
from 
http://stackoverflow.com/questions/11368049/django-and-jinja2-coffin-for-auth-and-login
 
where I first wrote this before joining this list )

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pocoo-libs/-/OfYXABsWaRIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to