You may want to look at the authentication contrib application that comes with Django.
Esp here: http://docs.djangoproject.com/en/1.2/topics/auth/#id7
Another solution if you intend to have totally different templates would be to check within the view the user state and render a different template.
Regards,
Xavier.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
It seems like a perfectly sensible plan to me. You will probably find
that you can define a hierarchy of templates, with the basic look and
feel provided by the top-level templates.
Sub-templates aren't always necessary.
regards
Steve
--
DjangoCon US 2011 Portland, OR: September 6-8 http://djangocon.us/
I think a more elegant approach would be to have a main template with {% block some_name_for_the_part_that_changes %}, and have two different template (logged_in.html and not_logged_in.html) that both extend said block in 'main.html'.