# -*- coding: utf-8 -*- from i18nurl import reverse_i18n # At startup print some urls print 'French', reverse_i18n('home', 'fr') print 'English', reverse_i18n('home', 'en') print 'German', reverse_i18n('home', 'de')
def get_redirect_url(self, **kwargs): """Redirect user to the right page.""" return reverse_i18n('home', language=get_language())