On Tuesday 23 May 2017 07:08:55 Jaap van Wingerde wrote:
> In my templates I have variables as {{ artobject.title|safe|capfirst
> }}. I want the site in more languages.So in changed the model: title
> changed in title_nl, and I appended title_de, title_en, title_fr.
You're trying to solve what Dja
Have you considered internationalization and localization as an alternative to
what you are doing?
https://docs.djangoproject.com/en/1.11/topics/i18n/
To do what you are doing, you would need to do it in the view function,
something like this:
context[‘title’] = getattr(artobject, “%s_%s” % (tit
2 matches
Mail list logo