If I add:

import settings
LANGUAGES=settings.LANGUAGES

and return it in the render_to_response it works perfectly, but can I
automatice this in all views?

On Fri, Jul 30, 2010 at 10:55, Baurzhan Ismagulov <i...@radix50.net> wrote:

> On Thu, Jul 29, 2010 at 11:52:31PM +0200, Alexandre González wrote:
> > 42             {% for lang in LANGUAGES %}
> ...
> > It works perfectly in some webs, but in others the var LANGUAGES isn't
> > provide automatically, do i need to send it in the views?
>
> I don't know whether it's relevant, but do you {% load i18n %} in your
> templates? I also pass context_instance=RequestContext(request) from the
> views, works fine for me.
>
> With kind regards,
> Baurzhan.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt
and/or .pptx
http://mirblu.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to