0
很奇怪〜Django Facebook Social-Plugin加載模板標籤之前
基本上我有一個標準的「喜歡!」按鈕:
<div class="fb-like" data-href="myURL/things/{{MyINFO}}/" data-send="false" data-width="450" data-show-faces="true"></div>
在在views.py我有:
def myView(request):
#Other things
ctx = {
'MyINFO' : MySTRING,
'Otherstuff' : Otherstuff
}
return render_to_response('myApp/myPage4.html', ctx, RequestContext(request))
當用戶 「像」 S頁面,就應該喜歡myURL/things/MyString/
,但他們所得到myURL/things/%7B%7BMyINFO%7D%7D/
莫非Facebook的東西在模板被預處理之前被加載?