A simple solution is to indicate the current page (or section) in the
context. You can do it in your urls.py (see
http://www.djangoproject.com/documentation/url_dispatch/#passing-extra-options-to-view-functions
) or in views.py.

Let's say you have inserted {'section': 'ajouter'} in your context.
Then in your menu template you can do:

{% ifequal section "ajouter" %}
<strong>Ajouter une recette</strong>
{% else %}
<a href="/ajouter">Ajouter</a> une recette
{% endifequal %}


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