Friday, July 30, 2010

Re: LANGUAGES var isn't in all views

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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment