{"id":2263,"date":"2020-11-27T12:22:16","date_gmt":"2020-11-27T03:22:16","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=2263"},"modified":"2020-11-27T12:22:16","modified_gmt":"2020-11-27T03:22:16","slug":"post-2263","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/11\/27\/post-2263\/","title":{"rendered":"\u3010Django\u3011Forms.py\u3063\u3066\u4f55!? \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u69cb\u7bc9\u3067\u6df7\u4e71\u3057\u3066\u304d\u305f\u306e\u3067\u6574\u7406\u3057\u3066\u307f\u305f"},"content":{"rendered":"<h2>\u3010Django\u3011Forms.py\u3063\u3066\u4f55!? \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u69cb\u7bc9\u3067\u6df7\u4e71\u3057\u3066\u304d\u305f\u306e\u3067\u6574\u7406\u3057\u3066\u307f\u305f<\/h2>\n<p>\u3061\u3087\u3063\u3068\u6df7\u4e71\u3057\u3066\u304d\u305fDjango\u306b\u3068\u3063\u3066\u306eMVC\u69cb\u6210\u3002<br \/>\nDjango\u3055\u3093\u3002\u5165\u9580\u30ec\u30d9\u30eb\u306f\u4f55\u3068\u304b\u8d85\u3048\u305f\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c...\u3044\u3063\u305f\u3044Forms\u3063\u3066\u4f55\uff1f<\/p>\n<div class=\"borderBox\">Models.py\u3000\/Forms.py\u3000\/Views.py\u3000\u5f79\u5272\u5206\u62c5\u306e\u6b63\u89e3\u306f\uff1f<\/div>\n<p>\u53c2\u8003\u56f3\u66f8\u3092\u6f01\u308a\u306a\u304c\u3089\u3044\u308d\u3044\u308d\u4f5c\u696d\u3092\u9032\u3081\u3066\u3044\u304f\u3068\u3010Forms.py\u3011\u3068\u8a00\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u4f5c\u696d\u3055\u308c\u308b\u65b9\u304c\u591a\u3044\u69d8\u5b50\u306a\u306e\u3067\u3001\u79c1\u3082\u771f\u4f3c\u3057\u3066\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3057\u305f\u3002<br \/>\n\u305f\u3060\u3001\u66f8\u3044\u3066\u3044\u308b\u3068\u300c\u3053\u308c\u306f\u3069\u3063\u3061\uff1f\u300d\u3068\u8a00\u3046\u30b7\u30fc\u30f3\u304c\u51fa\u3066\u304f\u308b\u3088\u3046\u306b\u306a\u308a\u6df7\u4e71\u3057\u305f\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3063\u3066Models.py\u3058\u3083\u306a\u3044\u306e\uff1f<\/h3>\n<p>\u6df7\u4e71\u306e\u4e00\u756a\u306e\u5143\u306fValidation\u306e\u8a2d\u5b9a\u3067\u3057\u305f\u3002<br \/>\nLaravel\u3060\u3068DB\u69cb\u6210\u306b\u95a2\u3059\u308b\u4e8b\u306fModels\u3067\u64cd\u4f5c\u306a\u306e\u3067Validation\u3082Models\u3067\u884c\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3082\u3001Django\u306eWEB\u4e0a\u306e\u53c2\u8003\u8cc7\u6599\u3067\u306fForms.py\u3067\u884c\u3063\u3066\u308b\u4f8b\u304c\u591a\u6570\u3002<\/p>\n<p>\u300c\u3058\u3083\u3042Forms\u3067\u3084\u308b\u306e\u304b\u306a\u300d\u3068\u601d\u3044\u304d\u3084Models\u3067Validation\u306e\u89e3\u8aac\u3092\u884c\u3063\u3066\u308b\u4eba\u3082\u3044\u307e\u3059\u3002<br \/>\n\u3082\u3046\u7d50\u5c40\u4f55\u304c\u6b63\u3057\u3044\u3084\u3089\u300c\u8a33\u304c\u5206\u304b\u3089\u306a\u3044\u300d\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3057\u305f\u3002<\/p>\n<h3>Forms.py \u306fHTML\u3068Models\u306e\u9593\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u7406\u89e3\u3059\u308b\u3068\u826f\u3044\u3063\u307d\u3044\u3002<\/h3>\n<p>\u300c\u3093\uff1f\u3067\u3082\u305d\u306e\u30dd\u30b8\u30b7\u30e7\u30f3\u3063\u3066Views.py\u306a\u3093\u3058\u3083\u306a\u3044\u306e\uff1f\u300d\u3068...\u3002<br \/>\n\u8981\u306f\u3053\u3044\u3064\u3089\u306e\u7acb\u3061\u4f4d\u7f6e\u304c\u3088\u304f\u308f\u304b\u3063\u3066\u306a\u3044\u3093\u3060\u306a\u3068\u6c17\u3065\u3044\u305f\u306e\u3067\u5f79\u5272\u3092\u6574\u7406\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<div class=\"paperBox\">\n<ul>\n<li>Models.py \uff1aSQL\u306e\u30c6\u30fc\u30d6\u30eb\u5b9a\u7fa9\u96c6\u3002\u203b SAVE\u6642\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306fModels\u304c\u62c5\u5f53\u306b\u306a\u308b\u3002<\/li>\n<li>Views.py\u00a0 \u00a0\uff1a\u8868\u793a\u753b\u9762(HTML)\u3078\u306e\u30c7\u30fc\u30bf\u306e\u53d7\u6e21\u5f79\u3002params\u3067\u9001\u3063\u305f\u308aPOST\u3092\u53d7\u3051\u305f\u308a\u3059\u308b\u3002<\/li>\n<li>Forms.py\u00a0 \u00a0\uff1aViews\u3068Models\u306e\u4ef2\u4ecb\u5f79\u3002Views\u306e\u53d7\u3051\u305f\u5024\u3092Forms\u306b\u6e21\u3057\u3066\u691c\u7d22\u3057\u305f\u308a\u3001SAVE\u524d\u306b\u30c1\u30a7\u30c3\u30af\u3057\u305f\u308a\u3092\u62c5\u5f53\u3002<\/li>\n<li>\u25cb\u25cb.html\u00a0 \uff1a\u4eba\u3068Views\u306e\u9593\u306e\u30d1\u30cd\u30eb\u3002\u60c5\u5831\u306e\u8868\u793a\/\u5165\u529b\u3092\u62c5\u5f53\u3001\u64cd\u4f5c\u3055\u308c\u305f\u5024\u306fViews\u306b\u9001\u3089\u308c\u308b\u3002<\/li>\n<li>urls.py\u3000\u3000\uff1a\u8868\u793a\u753b\u9762(HTML)\u306e\u9053\u5148\u6848\u5185\u3002\u76ee\u6b21\u5f79\u3002<\/li>\n<\/ul>\n<\/div>\n<p>\u3064\u307e\u308a\u3001validation\u306b\u95a2\u3057\u3066\u8a00\u3048\u3070Models\u3067\u3082Forms\u3067\u3082\u884c\u3048\u308b\u3051\u3069\u3001\u3069\u306e\u6642\u70b9\u3067\u64cd\u4f5c\u3059\u308b\u304b\u304c\u7570\u306a\u308b\u3068\u8a00\u3046\u4e8b\u306e\u69d8\u3067\u3059\u3002<\/p>\n<h3>Forms.py\u3067\u884c\u3046\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306fforms.Form\u30af\u30e9\u30b9\u304c\u62c5\u5f53<\/h3>\n<p>Django\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3068\u8a00\u3046\u3068\u3053\u306e\u30af\u30e9\u30b9\u3067\u884c\u308f\u308c\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3042\u308b\u69d8\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Class HogeForm(forms.Form):\r\n    name = forms.CharField(label='Name')\r\n    email = forms.EmailField(label='Email', required=False)<\/pre>\n<p>\u3053\u306eemail\u306b\u8a2d\u5b9a\u3057\u305f\u5fc5\u9808\u30de\u30fc\u30af\u306e\u89e3\u9664\u3010required=False\u3011\u304cForms\u3067\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u4e00\u822c\u7684\u306a\u7406\u7531\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<div class=\"pointBox\">\n<p>Django\u3067\u306fforms.Form\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u9805\u76ee\u3092\u7528\u610f\u3059\u308b\u3068\u81ea\u52d5\u7684\u306brequired=True\u3068\u8a8d\u8b58\u3055\u308c\u308b<\/p>\n<\/div>\n<p>\u3053\u308c\u3001Models\u3067NULL=TRUE\u306b\u3057\u3066\u3066\u3082\u30c0\u30e1\u3067\u3001Models\u306b\u9001\u308b\u524d\u306b\u300c\u5024\u304c\u7121\u3044\u306e\u306f\u30c0\u30e1\u3067\u3057\u3087\uff01\u300d\u3068\u6012\u3089\u308c\u308b\u3068\u8a00\u3046\u4e8b\u3002<br \/>\n\u305d\u308c\u3063\u3066Models\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u7d44\u3093\u3067\u3082\u610f\u5473\u306a\u3044\u3063\u3066\u4e8b...\u3067\u3059\u3088\u306d\u3002<\/p>\n<h3>forms.Form\u3067\u4f7f\u3048\u308b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u6587\u5b57\u5217\u304b\u6570\u5024\u304b\u7b49\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u30bf\u30a4\u30d7\u3067\u3069\u3046\u5909\u308f\u308b\u304b\u307e\u3068\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u547d\u4ee4<\/td>\n<td>\u4f7f\u3048\u308b\u30d5\u30a3\u30fc\u30eb\u30c9<\/td>\n<td>\u30c1\u30a7\u30c3\u30af\u9805\u76ee<\/td>\n<td>\u5165\u529b\u5024<\/td>\n<td>\u5099\u8003<\/td>\n<\/tr>\n<tr>\n<td>required<\/td>\n<td>\u5168\u30d5\u30a3\u30fc\u30eb\u30c9<\/td>\n<td>\u5fc5\u9808\u304b\u5426\u304b<\/td>\n<td>True = \u5fc5\u9808<br \/>\nFalse = \u81ea\u7531<\/td>\n<td>forms.Form\u306b\u8a18\u8f09\u3057\u3066\u3044\u308b\u5834\u5408<br \/>\nFalse\u6307\u5b9a\u3057\u306a\u3044\u3068\u5168\u3066True\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>empty_value<\/td>\n<td>\u30c6\u30ad\u30b9\u30c8\u7cfb<\/td>\n<td>\u7a7a\u5165\u529b\u306e\u8a31\u53ef<\/td>\n<td>True = \u53ef<br \/>\nFalse = \u5426<\/td>\n<td>\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u306frequired=True\u3067\u306f\u30a8\u30e9\u30fc\u3060\u304c<br \/>\nempty_value=True\u3067\u306f\u8a31\u53ef\u3055\u308c\u308b<\/td>\n<\/tr>\n<tr>\n<td>min_length<\/td>\n<td>\u30c6\u30ad\u30b9\u30c8\u7cfb<\/td>\n<td>\u6700\u5c0f\u6587\u5b57\u6570<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u25cb\u6587\u5b57\u4ee5\u4e0a\u7b49\u3067\u306e\u5229\u7528\u304c\u8003\u3048\u3089\u308c\u308b<\/td>\n<\/tr>\n<tr>\n<td>max_length<\/td>\n<td>\u30c6\u30ad\u30b9\u30c8\u7cfb<\/td>\n<td>\u6700\u5927\u6587\u5b57\u6570<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td>\u4e00\u822c\u7684\u306a\u6587\u5b57\u6570\u5236\u9650\u3068\u3057\u3066\u5229\u7528<\/td>\n<\/tr>\n<tr>\n<td>min_value<\/td>\n<td>\u6570\u5024\u7cfb<\/td>\n<td>\u6700\u5c0f\u5024<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>max_value<\/td>\n<td>\u6570\u5024\u7cfb<\/td>\n<td>\u6700\u5927\u5024<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>input_formats<\/td>\n<td>\u65e5\u4ed8\u7cfb<\/td>\n<td>Format\u6b63\u5426<\/td>\n<td>%y = \u5e74<br \/>\n%m = \u6708<br \/>\n%d = \u65e5<br \/>\n%H = \u6642<br \/>\n%M = \u5206%<br \/>\nS = \u79d2<\/td>\n<td>input_formats=['%y\/%m\/%d']\u3068\u3059\u308b\u3068<br \/>\n2020\/11\/27\u3068\u3044\u3046\u8a18\u8ff0\u3092\u6c42\u3081\u3089\u308c\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u307e\u3060\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3001\u3056\u3063\u3068\u8abf\u3079\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n\u611f\u899a\u7684\u306b\u300c\u3056\u3063\u304f\u308a\u3057\u305f\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u300d\u306b\u611f\u3058\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u8abf\u3079\u3066\u307f\u308b\u3068\u7d30\u304b\u306a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306fModels\u306b\u62c5\u5f53\u304b\u79fb\u308b\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<h3>models.Model\u3067\u4f7f\u3048\u308b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u3053\u3061\u3089\u3082\u30b6\u30c3\u30af\u30ea\u3067\u3059\u304c\u307e\u3068\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u547d\u4ee4<\/td>\n<td>\u4f7f\u3048\u308b\u30d5\u30a3\u30fc\u30eb\u30c9<\/td>\n<td>\u30c1\u30a7\u30c3\u30af\u9805\u76ee<\/td>\n<td>\u5165\u529b\u5024<\/td>\n<td>\u5099\u8003<\/td>\n<\/tr>\n<tr>\n<td>max_length<\/td>\n<td>\u30c6\u30ad\u30b9\u30c8\u7cfb<\/td>\n<td>\u6700\u5927\u6587\u5b57\u6570<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td>min_length\u306f\u5b58\u5728\u3057\u306a\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>MinLengthValidator<\/td>\n<td>\u30c6\u30ad\u30b9\u30c8\u7cfb<\/td>\n<td>\u6700\u5c0f\u6587\u5b57\u6570<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>MaxLengthValidator<\/td>\n<td>\u30c6\u30ad\u30b9\u30c8\u7cfb<\/td>\n<td>\u6700\u5927\u6587\u5b57\u6570<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td>\u6587\u5b57\u6570\u5165\u529b\u898f\u5236\u3002<br \/>\n\u203bmax_length\u3068\u540c\u3058<\/td>\n<\/tr>\n<tr>\n<td>MinValurValidator<\/td>\n<td>\u6570\u5024\u7cfb<\/td>\n<td>\u6700\u5c0f\u5024<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>MaxValurValidator<\/td>\n<td>\u6570\u5024\u7cfb<\/td>\n<td>\u6700\u5927\u5024<\/td>\n<td>\u6574\u6570\u5024<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>EmailValidator<\/td>\n<td>EmailField<\/td>\n<td>Mail\u304b\u5426\u304b<\/td>\n<td><\/td>\n<td>validataors\u306b\u8ffd\u52a0\u3059\u308b\u3068\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>URLValodator<\/td>\n<td>URLField<\/td>\n<td>URL\u304b\u5426\u304b<\/td>\n<td><\/td>\n<td>validataors\u306b\u8ffd\u52a0\u3059\u308b\u3068\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>ProhibitNullCharactersValidator<\/td>\n<td>\u5168\u30d5\u30a3\u30fc\u30eb\u30c9<\/td>\n<td>NULL<\/td>\n<td><\/td>\n<td>validataors\u306b\u8ffd\u52a0\u3059\u308b\u3068NULL\u898f\u5236\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>RegexValidator<\/td>\n<td>\u30c6\u30ad\u30b9\u30c8\u7cfb<\/td>\n<td>\u30eb\u30fc\u30eb\u6e96\u62e0<\/td>\n<td>\u6b63\u898f\u8868\u73fe<\/td>\n<td>\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3044\u5165\u529b\u898f\u5236\u3092\u884c\u3046<br \/>\n\u203b\u6570\u5b57\u306e\u307f\u3068\u304b<\/td>\n<\/tr>\n<tr>\n<td>number_only<\/td>\n<td>\u6570\u5024\u7cfb<\/td>\n<td>\u6570\u5024\u304b\u5426\u304b<\/td>\n<td><\/td>\n<td>validataors\u306b\u8ffd\u52a0\u3059\u308b\u3068\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5168\u7136\u9055\u3046\u3057\u3001\u3053\u3061\u3089\u306e\u65b9\u304c\u30c1\u30a7\u30c3\u30af\u9805\u76ee\u304c\u7d30\u304b\u3044\u307f\u305f\u3044\u3067\u3059\u3002<br \/>\nmodels.Model\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u3010models.py\u3011\u306b\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6642\u3001forms.py\u3067\u306f\u4e0b\u306e\u69d8\u306b\u8a18\u8f09\u3057\u3066models.py\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u6d41\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">#forms.py \u5185\u306b\u8a18\u8f09\r\nclass ContentsCreateForm(forms.ModelForm):\r\n    class Meta:\r\n        model = Contents\r\n        fields = ('types', 'name', 'contents',)<\/pre>\n<p>forms.ModelForm\u306eMate\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066models\u3092\u898b\u305b\u308b\u3068\u3002<\/p>\n<h3>Models\u306b\u6765\u308b\u524d\u306b\u7c21\u5358\u306a\u3082\u306e\u306fForms\u3067\u520e\u306d\u3066\u3057\u307e\u304a\u3046<\/h3>\n<p>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u3053\u3093\u306a\u7406\u89e3\u3067\u3042\u3063\u3066\u3044\u308b\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u5165\u529b\u304b\u3089DB\u683c\u7d0d\u307e\u3067\u306e\u52d5\u4f5c\u306f\u4e0b\u306e\u5f62\u3067\u6d41\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<div class=\"borderBox\">\n<ol>\n<li>HTML(Template)\u3067\u5165\u529b\u64cd\u4f5c<\/li>\n<li>\u5165\u529b\u3055\u308c\u305f\u5024\u304cViews\u306b\u9001\u3089\u308c\u308b<\/li>\n<li>Views\u304b\u3089Forms\u306b\u5024\u3092\u9001\u308a1\u6b21\u30c1\u30a7\u30c3\u30af\uff08\u5927\u304d\u306a\u7be9\uff09<\/li>\n<li>Forms\u304b\u3089Models\u306b\u5024\u3092\u9001\u308a2\u6b21\u30c1\u30a7\u30c3\u30af\uff08\u7d30\u304b\u3044\u7be9\uff09<\/li>\n<li>Models\u304b\u3089DB\u306b\u5024\u3092\u9001\u308a\u4fdd\u5b58<\/li>\n<\/ol>\n<\/div>\n<p>\u3046\uff5e\u3093\u3001\u306a\u304b\u306a\u304b\u3067\u3059\u306d\u3002<br \/>\n\u305d\u3082\u305d\u3082\u3001forms.ModelForm\u3068\u304b\u5b58\u5728\u3059\u308b\u304f\u3089\u3044\u306a\u306e\u3067Forms\u306fMVC\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u3010 M \u3011\u62c5\u5f53\u3063\u3066\u4e8b\u3067\u3044\u3044\u3093\u3060\u308d\u3046\u306a\u3041\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u66f8\u304d\u51fa\u3057\u305f\u3089Models\u3068Forms\u304c\u30b4\u30c1\u30e3\u30b4\u30c1\u30e3\u3057\u3066\u304d\u305f\u306e\u3067\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u7d50\u679c\u3068\u3057\u3066\u300eForms\u306fModels\u306e\u5f79\u5272\u3092\u4e00\u90e8\u53d6\u51fa\u3057\u305f\u3082\u306e\u300f\u3068\u8003\u3048\u308b\u306e\u304c\u6700\u826f\u3060\u308d\u3046\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u611f\u3058\u3060\u3068\u3001\u307e\u3060\u307e\u3060\u60a9\u3080\u30dd\u30a4\u30f3\u30c8\u51fa\u3066\u304d\u305d\u3046\u3067\u3059\u3002<br \/>\n\u300c\u4f4f\u3081\u3070\u90fd\u300d\u306a\u3093\u3067\u3057\u3087\u3046\u3051\u3069\u3001\u4eca\u306e\u6240\u306fLaravel\u306e\u65b9\u304c\u6271\u3044\u3084\u3059\u304f\u611f\u3058\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010Django\u3011Forms.py\u3063\u3066\u4f55!? \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u69cb\u7bc9\u3067\u6df7\u4e71\u3057\u3066\u304d\u305f\u306e\u3067\u6574\u7406\u3057\u3066\u307f\u305f \u3061\u3087\u3063\u3068\u6df7\u4e71\u3057\u3066\u304d\u305fDjango\u306b\u3068\u3063\u3066\u306eMVC\u69cb\u6210\u3002 Django\u3055\u3093\u3002\u5165\u9580\u30ec\u30d9\u30eb\u306f\u4f55\u3068\u304b\u8d85\u3048\u305f\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c.. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[38],"tags":[814,841,830,839,147,376,840,842],"class_list":["post-2263","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-memorandum","tag-django","tag-froms-py","tag-models-py","tag-mvc","tag-python","tag-376","tag-840","tag-842"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/11\/django.png","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=2263"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2263\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/2174"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=2263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=2263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=2263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}