Hi,

>
> Is it possible for me to define this datetime-function just once and
> without the need to include the 'current_date' variable to the
> "render_to_response" function every time?
> I would like some standard variables in my Django-project to be
> available in all templates without the need to define the functions
> for every view.
> Is this what middleware are for?

This is best done with a custom context processor:

http://www.djangoproject.com/documentation/templates_python/#writing-your-own-context-processors

-Rajesh D

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to