<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nullpobug</author_name>
  <author_url>https://blog.hatena.ne.jp/nullpobug/</author_url>
  <blog_title>偏った言語信者の垂れ流し</blog_title>
  <blog_url>https://tokibito.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Django</anon>
  </categories>
  <description>Djangoのフォーム機能は通常、 django.forms.Form クラスを継承して定義をします。 フォームを使う | Django ドキュメント | Django リクエスト時に動的にフォームクラスを生成したい場合もあるので、今回はそれをやってみます。 フォームクラスを動的に生成する関数 myapp/forms.py: from django import forms def create_form(form_schema_dict): &quot;&quot;&quot; 動的にフォームを作成する :form_schema_dict: フォームのスキーマを定義した辞書 :return: フォームクラス 例: for…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokibito.hatenablog.com%2Fentry%2F2024%2F05%2F03%2F234947&quot; title=&quot;Djangoで動的にフォームクラスを作成する - 偏った言語信者の垂れ流し&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nullpobug/20240503/20240503234928.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-03 23:49:47</published>
  <title>Djangoで動的にフォームクラスを作成する</title>
  <type>rich</type>
  <url>https://tokibito.hatenablog.com/entry/2024/05/03/234947</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
