<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>device_me</author_name>
  <author_url>https://blog.hatena.ne.jp/device_me/</author_url>
  <blog_title>アプリなどを開発するブログ</blog_title>
  <blog_url>https://source.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Django</anon>
  </categories>
  <description>超簡単です。 基本的にはserializerに'json'か'xml'と、クエリセット渡してあげればOK。 jsonのところでゴニョゴニョやってるのは文字化け対策です。 from django.http import HttpResponse from django.core import serializers items = モデル名.objects.all() # XML xml_data = serializers.serialize(&quot;xml&quot;, items) return HttpResponse(xml_data) #JSON json_data = serializers.se…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsource.hatenadiary.jp%2Fentry%2F2013%2F02%2F05%2F164145&quot; title=&quot;DjangoでModelの内容からXMLやJSONを出力する - アプリなどを開発するブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-02-05 16:41:45</published>
  <title>DjangoでModelの内容からXMLやJSONを出力する</title>
  <type>rich</type>
  <url>https://source.hatenadiary.jp/entry/2013/02/05/164145</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
