Friday, July 30, 2010

Re: LANGUAGES var isn't in all views

On Fri, Jul 30, 2010 at 11:14:42AM +0200, Alexandre González wrote:
> 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?

Sure, it works for me without passing LANGUAGES explicitly. I'm afraid
you'll have to read render_to_response to find out why.

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