Sorry, my mistake. Actually you can't insert anything into the context
in urls.py. I was thinking of the ability to pass extra arguments for
your view functions, which is of little use here.

So I'd either use the method I illustrated above or go with the CSS
method. Either way, you need to insert {'section': ...} (or similar)
into the context in the view.

If you choose the CSS way (an elegant solution, I must admit), you
should follow Wilson's suggestion for the stylesheet and do this in
your template:

<body class="{{section}}">
...
<p id="nav-ajouter"><a href="/ajouter">Ajouter</a> une recette</p>
<p id="nav-conquer"><a href="/conquer">Conquer</a> the world</p>
...

By the way, with this method I can't see a simple way to disable the
link for the current section.


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

Reply via email to