{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130422%2F1366646284\" title=\"ClassBasedView\u306b\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u9069\u7528\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2013-04-22 00:58:04","image_url":null,"author_name":"yuheiomori0718","provider_name":"Hatena Blog","height":"190","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","title":"ClassBasedView\u306b\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u9069\u7528\u3059\u308b","categories":["django","python"],"width":"100%","description":"\u3053\u3093\u306aClassBasedView\u304c\u3042\u308b\u3068\u3057\u3066views.py class LoginRequiredSampleView(TemplateView): template_name = 'apps/login_required.html' \u306a\u3093\u3089\u304b\u306e\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u3001\u3044\u304f\u3064\u304b\u65b9\u6cd5\u304c\u8003\u3048\u3089\u308c\u308b\u306e\u3067\u3072\u3068\u3064\u305a\u3064\u8a66\u3057\u3066\u307f\u305f\u3002 1\u3064\u3081\u3002views.py\u3067login_required\u3092\u547c\u3073\u51fa\u3057\u3066\u95a2\u6570\u306b\u3059\u308b # views.py from django.contrib.auth.decorators import login_required from django.views.generic im\u2026","type":"rich","version":"1.0","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","blog_url":"https://y0m0r.hateblo.jp/","url":"https://y0m0r.hateblo.jp/entry/20130422/1366646284"}