{"id":5346,"date":"2017-06-28T14:08:30","date_gmt":"2017-06-28T05:08:30","guid":{"rendered":"http:\/\/mocabrown.com\/blog\/?p=5346"},"modified":"2017-06-28T14:08:30","modified_gmt":"2017-06-28T05:08:30","slug":"django%e3%81%aeinclude%e3%81%ae%e4%bb%95%e6%a7%98%e3%81%8c%e5%a4%89%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a6%e3%83%8f%e3%83%9e%e3%81%a3%e3%81%9f%e3%81%ae%e3%81%a7%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/mocabrown.com\/blog\/archives\/5346","title":{"rendered":"Django\u306einclude\u306e\u4ed5\u69d8\u304c\u5909\u3063\u3066\u3044\u3066\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2"},"content":{"rendered":"<p>Django\u306fPython\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<a href=\"http:\/\/qiita.com\/kaki_k\/items\/6e17597804437ef170ae\" target=\"_blank\" rel=\"noopener\">Qiita\u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u305fDjango\u5165\u9580<\/a>\u3092\u5199\u7d4c\u3057\u3066\u3044\u3066\u3001\u3055\u3063\u305d\u304f\u3064\u307e\u3065\u304d\u307e\u3057\u305f\u306e\u3067\u81ea\u5206\u7528\u306b\u3082\u30e1\u30e2\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u306e\u5143\u306b\u306a\u3063\u305f\u306e\u306f\u4e0b\u8a18\u306e\u90e8\u5206\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eurls.py\u306e\u4e2d\u3067include\u3092\u4f7f\u3063\u3066\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<blockquote><p>urlpatterns = [<br \/>\nurl(r&#8217;^admin\/&#8217;, admin.site.urls),<br \/>\nurl(r&#8217;^cms\/&#8217;, include(&#8216;cms.urls&#8217;, namespace=&#8217;cms&#8217;)),<br \/>\n]<\/p><\/blockquote>\n<p>URL\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u3059\u308b\u969b\u3001include\u3068\u3044\u3046\u306e\u3092\u4f7f\u3044\u307e\u3059\u3002\u3069\u3046\u3082\u3053\u3053\u306e\u4ed5\u69d8\u304c\u5909\u308f\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>Specifying a namespace in django.conf.urls.include() without providing an app_name is deprecated. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead<\/p><\/blockquote>\n<p>\u305d\u3053\u3067\u3001\u3044\u308d\u3044\u308d\u8abf\u3079\u305f\u3089\u7b54\u3048\u306f\u3053\u3061\u3089\u306e\u30d6\u30ed\u30b0\u3067\u898b\u3064\u3051\u307e\u3057\u305f\u3002\uff1e<a href=\"http:\/\/thinkami.hatenablog.com\/\" target=\"_blank\" rel=\"noopener\">\u30e1\u30e2\u7684\u601d\u8003\u7684\u306a<\/a><\/p>\n<p>\u3055\u3063\u304d\u306e\u90e8\u5206\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3059\u308b\u3068\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>urlpatterns = [<br \/>\nurl(r&#8217;^admin\/&#8217;, admin.site.urls),<br \/>\nurl(r&#8217;^cms\/&#8217;, include((&#8216;cms.urls&#8217;,&#8217;cms&#8217;),)),<br \/>\n]<\/p><\/blockquote>\n<p>\u30dd\u30a4\u30f3\u30c8\u306fnamespace\u3092\u4f7f\u308f\u306a\u3044\u3053\u3068\u3002\u305d\u308c\u3068\u3001include\u306e\u4e00\u3064\u76ee\u306e\u5f15\u6570\u3068\u3057\u3066\u30ab\u30c3\u30b3\u3067\u304f\u304f\u3063\u3066\u6e21\u3059\u3053\u3068\u3002<\/p>\n<p>\u4ee5\u4e0a\u3001\u540c\u3058\u3068\u3053\u308d\u3067\u3064\u307e\u3065\u3044\u305f\u65b9\u306e\u304a\u5f79\u306b\u305f\u3063\u305f\u3089\u3002\u6700\u8fd1\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3082\u3053\u306e\u90e8\u5206\u306f\u6cbb\u3063\u3066\u306a\u304b\u3063\u305f\u308a\u3001\u540c\u3058\u3068\u3053\u308d\u3067\u56f0\u3063\u3066\u3044\u308b\u4eba\u306f\u591a\u3044\u304b\u3082\u3002\u81ea\u5206\u3078\u306e\u30e1\u30e2\u3068\u3057\u3066\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django\u306fPython\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002Qiita\u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u305fDjango\u5165\u9580\u3092\u5199\u7d4c\u3057\u3066\u3044\u3066\u3001\u3055\u3063\u305d\u304f\u3064\u307e\u3065\u304d\u307e\u3057\u305f\u306e\u3067\u81ea\u5206\u7528\u306b\u3082\u30e1\u30e2\u3002 \u30a8\u30e9\u30fc\u306e\u5143\u306b\u306a\u3063\u305f\u306e\u306f\u4e0b\u8a18\u306e\u90e8\u5206\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eurls.py\u306e\u4e2d\u3067i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[14],"tags":[151,150],"class_list":["post-5346","post","type-post","status-publish","format-standard","hentry","category-14","tag-django","tag-python"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/posts\/5346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/comments?post=5346"}],"version-history":[{"count":1,"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/posts\/5346\/revisions"}],"predecessor-version":[{"id":5347,"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/posts\/5346\/revisions\/5347"}],"wp:attachment":[{"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/media?parent=5346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/categories?post=5346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mocabrown.com\/blog\/wp-json\/wp\/v2\/tags?post=5346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}