You can pass the settings object into your context when you render
your template, or you can write a context processor that adds the
settings object to the template's context.  Take a look at the docs on
context processors, especially the section about writing your own:
http://docs.djangoproject.com/en/dev/ref/templates/api/?#id1

-Jeff

On Dec 6, 1:17 pm, barracuda <[EMAIL PROTECTED]> wrote:
> Hello,
> How can I use a configuration in settings in templates?
> For e.g , I would like to use the DATE_FORMAT configured in settings
> to format the database datetime in a template
> Here: {{db_time|date:"D d M Y" }} I want to get the format from
> settings.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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