2017-02-18 38 views
0

/'タプル'オブジェクトにAttributeErrorがあります。属性は 'get'ではありません。以下はトレースパスです。/'tuple'のAttributeErrorオブジェクトにDjangoの属性 'get'がありません

AttributeError at/

'tuple' object has no attribute 'get' 

Request Method:  GET 
Request URL: http://www.example.com/ 
Django Version:  1.10.5 
Exception Type:  AttributeError 
Exception Value:  

'tuple' object has no attribute 'get' 

Exception Location:  /home/admin/env/lib/python3.5/site-packages  /django/middleware/clickjacking.py in process_response, line 32 

Pythonの実行可能ファイル:/ホーム/管理/ envを/ binに/ pythonの Pythonのバージョン:3.5.2

+1

[AttributeError 'tuple'オブジェクトの複製は属性 'get'がありません](http://stackoverflow.com/questions/22557014/attributeerror-tuple-object-has-no-attribute-get) – Nrzonline

+0

投稿してください少なくともprocess_responseのコード。 – Grr

答えて

0

クリックジャッキングミドルウェアは、応答のgetメソッドを呼び出しています。したがって、ビューはHttpResponseインスタンスを返していません。

+0

どうすれば解決できますか?私の見解では "return render(request、my.html ')"を実行しています –

+0

あなたはあなたのビューコードをチェックし、それが返されていることを確認します。おそらく 'render(request、 'template.html')'や 'sth 'の代わりに'(request、' template.html ') 'を返すかもしれません。 – schwobaseggl

+0

私はチェックコードが2倍に見えます。 –

関連する問題