2016-06-28 8 views
1

Why is Django blocktrans working one place and not another?では、私は同様の質問をし、問題行動を解決する「i18n」応答の後に回答を受け入れました。このDjangoテンプレートをレンダリングするにはどうしたらいいですか?

{% extends "microblogging/base.html" %} 

{% load i18n %} 
{% load avatar_tags %} 
{% load account_tags %} 

{% user_display other_user as other_user_display %} 

{% block head_title %}{% blocktrans %}Followers of {{ other_user_display }}{% endblocktrans %}{% endblock %} 

エラーは次のとおりです:

TemplateSyntaxError at /tweets/followers/ABC/ 
Caught KeyError while rendering: u'other_user_display' 

私は、正しく次のテンプレートを読んでいる場合はここで、私は与えられたユーザーのフォロワーが何であるかを見るためPinaxの0.9a1のテンプレートでTemplateSyntaxErrorを取得していますテンプレートの末尾(空白でない)行はother_user_displayと定義されています。 user_display()は、lib/python2.7/site-packages/pinax/apps/account/utils.pyで定義されています。 user_display other_user/other_user_displayを利用可能にするために行われる必要がある他に何

答えて

関連する問題