{"type":"rich","author_url":"https://blog.hatena.ne.jp/kitanokumo/","categories":["python","django"],"blog_url":"https://studylog.hateblo.jp/","provider_url":"https://hatena.blog","author_name":"kitanokumo","provider_name":"Hatena Blog","height":"190","width":"100%","title":"Django\u3067\u30b9\u30de\u30db\u632f\u308a\u5206\u3051","url":"https://studylog.hateblo.jp/entry/2014/02/10/061003","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstudylog.hateblo.jp%2Fentry%2F2014%2F02%2F10%2F061003\" title=\"Django\u3067\u30b9\u30de\u30db\u632f\u308a\u5206\u3051 - studylog/\u5317\u306e\u96f2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-02-10 06:10:03","blog_title":"studylog/\u5317\u306e\u96f2","version":"1.0","description":"Rails\u3060\u3068jpmobile\u304c\u3042\u3063\u305f\u3051\u3069Django\u306b\u306f\u3042\u3093\u307e\u308a\u826f\u3055\u305d\u3046\u306a\u306e\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u306e\u3067PC\u3068\u30b9\u30de\u30db\u3092\u632f\u308a\u5206\u3051\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306eprocess_view\u306f\u30d3\u30e5\u30fc\u5b9f\u884c\u524d\u306b\u901a\u904e\u3059\u308b\u306e\u3067\u3053\u3053\u3067UserAgent\u3088\u308a\u632f\u308a\u5206\u3051\u51e6\u7406\u958b\u59cb from user_agents import parse class MyMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): #mobile\u5224\u5b9a request.user_agent_flag = MyMiddleware.us\u2026","image_url":null}