About Archive Tag Cloud Translations RSS

You are writing a comment about Layers of Authentication, here is a quick summary:

This third entry in the Django, jQuery & Ajax series looks at the two layers of authentication (indicating authentication via the user interface, and performing authentication via the api and templates), and how to handle authentication in Ajaxy applications.


You are responding to this comment written by izzy on January 12th 2009, 20:36.

Hi!

I'm wondering how can I use the {% if user.is_authenticated %} in base.html. It seems that we have to implement custom template tags to be able to use it in stand-alone template like base.html. I can't use requestcontext to render it to basehtml since all templates uses the base html.


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")