こんにちは、現在django上でRSSReaderを製作しようと試みています。
以下のURL(http://qiita.com/kaki_k/items/511611cadac1d0c69c54)を参考にWebServerを動かせるようになり、そのプロジェクト上で以下のURL(https://github.com/ahernp/django-feedreader)で公開されているRSSReaderを実装を考えています。
公開されているRSSreaderのReadMeのQuickStartの項目を参考に実装を進めておりましたが、最後の 「6.Visit /feedreader/ to see the contents of the feeds.」で詰まってしまいました。
/feedreader/にアクセスすると以下のようなエラーが発生してしまいます。
AttributeError at /feedreader/ 'WSGIRequest' object has no attribute 'user' Request Method: GET Request URL: http://127.0.0.1:8000/feedreader/ Django Version: 1.9.1 Exception Type: AttributeError Exception Value: 'WSGIRequest' object has no attribute 'user'
エラー元を遡ってみるとbracesというパッケージのLoginRequiredMixinというクラスの以下のコードが引っかかったようです。
python
1 def dispatch(self, request, *args, **kwargs): 2 if not request.user.is_authenticated(): 3 return self.handle_no_permission(request)
そこからDjangoのWSGIRequestクラスを調べていってもuserという属性は確かに見つからず、お手上げ状態になってしまいました。
知恵をお貸しくださいよろしくお願いいたします。
あなたの回答
tips
プレビュー