无法解析余数:' - '来自' - '

时间:2015-12-12 13:49:17

标签: python html django

如果我正在尝试调用此特定HTML文件,则标签会抛出上述错误。

   user  system elapsed 
   0.49    0.00    0.49 

上面的代码抛出以下错误。 error image

1 个答案:

答案 0 :(得分:1)

{%elif game.status == 'F' and user = game.first_player%}
    You Won !
{%elif game.status == 'S' and user - game.second_player%}
    You Won !

似乎是

{%elif game.status == 'F' and user == game.first_player%}
    You Won !
{%elif game.status == 'S' and user == game.second_player%}
    You Won !