私の「ルート」テンプレートには、次のようなものがあります
{% if special %}
some_special_html
{% endif %}
テンプレート変数は、special
特定のビューによってテンプレートに挿入されます。
問題は、テンプレートpassword_change
変数をすべて設定するためのビューが必要なことです。special
これにアプローチするための最良の方法は何ですか?
現在、password_change
ビューはurls.pyから直接呼び出されます。
url(r'^change_password/$', 'django.contrib.auth.views.password_change',
{'template_name': 'profile/password_change.html'},
name='password_change'),