{"id":38704,"date":"2024-11-01T19:08:59","date_gmt":"2024-11-01T19:08:59","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38704"},"modified":"2024-11-26T06:43:34","modified_gmt":"2024-11-26T06:43:34","slug":"django-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-%ed%8f%bcform-%eb%b0%8f-%eb%aa%a8%eb%8d%b8-%ed%8f%bcmodelform-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38704\/","title":{"rendered":"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>Django\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \ube60\ub974\uace0 \ud3b8\ub9ac\ud558\uac8c \ub9cc\ub4e4\uc5b4\uc8fc\ub294 \ud30c\uc774\uc36c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc\uacfc \ubaa8\ub378 \ud3fc \uc0ac\uc6a9\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud3fc\uc740 \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \ucc98\ub9ac\ud558\uace0 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud558\ub294 \ub3c4\uad6c\ub85c \uc0ac\uc6a9\ub418\uba70, \ubaa8\ub378 \ud3fc\uc740 Django \ubaa8\ub378\uc758 \ud544\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \uc790\ub3d9\uc73c\ub85c \ud3fc\uc744 \uc0dd\uc131\ud558\uace0 \uad00\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4.<\/p>\n<h2>1. Django \ud3fc(Form) \uc18c\uac1c<\/h2>\n<p>Django\uc758 \ud3fc \ud074\ub798\uc2a4\ub294 HTML \uc785\ub825\uc744 \ucc98\ub9ac\ud558\ub294 \uc720\uc6a9\ud55c \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uac01 \ud3fc \ud544\ub4dc\ub294 \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \ucea1\ucc98\ud558\uace0 \uc774\ub97c \uac80\uc99d\ud558\ub294 \uae30\ub2a5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c Django\uc758 \ud3fc\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \ub450 \uac00\uc9c0 \uc8fc\uc694 \uc6a9\ub3c4\ub85c \uc0ac\uc6a9\ub429\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc0ac\uc6a9\uc790\uac00 \uc785\ub825\ud55c \ub370\uc774\ud130\ub97c \uac80\uc99d\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc0ac\uc6a9\uc790\uac00 \uc785\ub825\ud55c \ub370\uc774\ud130\ub97c \uc11c\ubc84\uc5d0\uc11c \ucc98\ub9ac \uac00\ub2a5\ud55c \ud615\ud0dc\ub85c \ubcc0\ud658\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<p>\ud3fc\uc744 \uc0dd\uc131\ud558\ub824\uba74 <code>django.forms<\/code> \ubaa8\ub4c8\uc5d0\uc11c <code>Form<\/code> \ud074\ub798\uc2a4\ub97c \uc0c1\uc18d\ubc1b\uc544 \uc0ac\uc6a9\uc790 \uc815\uc758 \ud3fc \ud074\ub798\uc2a4\ub97c \ub9cc\ub4ed\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uae30\ubcf8\uc801\uc778 \ud3fc \ud074\ub798\uc2a4\uc758 \uc608\uc81c\uc785\ub2c8\ub2e4:<\/p>\n<pre><code class=\"language-python\">from django import forms\n\nclass MyForm(forms.Form):\n    name = forms.CharField(label='\uc774\ub984', max_length=100)\n    email = forms.EmailField(label='\uc774\uba54\uc77c')\n    message = forms.CharField(label='\uba54\uc2dc\uc9c0', widget=forms.Textarea)\n    <\/code><\/pre>\n<p>\uc774 \ud3fc\uc740 \uc774\ub984, \uc774\uba54\uc77c, \uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ubc1b\uae30 \uc704\ud55c \ud544\ub4dc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uac01 \ud544\ub4dc\ub294 `label`, `max_length`\uc640 \uac19\uc740 \ub9e4\uac1c\ubcc0\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac80\uc0ac \ubc0f \uc18d\uc131\uc744 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>2. \ud3fc \uc720\ud6a8\uc131 \uac80\uc0ac<\/h2>\n<p>\ud3fc\uc744 \uc0ac\uc6a9\ud558\uba74 \uc81c\ucd9c\ub41c \ub370\uc774\ud130\uc758 \uc720\ud6a8\uc131\uc744 \uc27d\uac8c \uac80\uc0ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub370\uc774\ud130\uac00 \uc720\ud6a8\ud55c \uacbd\uc6b0 <code>is_valid()<\/code> \uba54\uc18c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ub97c \uc218\uc9d1\ud569\ub2c8\ub2e4:<\/p>\n<pre><code class=\"language-python\">def my_view(request):\n    if request.method == 'POST':\n        form = MyForm(request.POST)\n        if form.is_valid():\n            # \uc720\ud6a8\uc131 \uac80\uc0ac \ud1b5\uacfc\n            name = form.cleaned_data['name']\n            email = form.cleaned_data['email']\n            message = form.cleaned_data['message']\n            # \uc5ec\uae30\uc11c \ub370\uc774\ud130\ub97c \ucc98\ub9ac (\uc608: \uc774\uba54\uc77c \ubcf4\ub0b4\uae30)\n            return HttpResponse('\uc81c\ucd9c \uc131\uacf5!')\n    else:\n        form = MyForm()\n    \n    return render(request, 'my_template.html', {'form': form})\n    <\/code><\/pre>\n<p>\uc720\ud6a8\uc131 \uac80\uc0ac\uac00 \ud1b5\uacfc\ud558\uba74 <code>cleaned_data<\/code> \uc18d\uc131\uc744 \ud1b5\ud574 \uc0ac\uc6a9\uc790\uac00 \uc785\ub825\ud55c \ub370\uc774\ud130\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub370\uc774\ud130 \ucc98\ub9ac \ud6c4 \uc131\uacf5 \uba54\uc2dc\uc9c0\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<h2>3. Django \ubaa8\ub378 \ud3fc(ModelForm) \uc18c\uac1c<\/h2>\n<p>\ubaa8\ub378 \ud3fc\uc740 Django\uc758 \ubaa8\ub378\uacfc \uc5f0\uacb0\ub41c \ud3fc\uc785\ub2c8\ub2e4. \ubaa8\ub378\uc758 \ud544\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \ud3fc\uc744 \uc790\ub3d9\uc73c\ub85c \uc0dd\uc131\ud560 \uc218 \uc788\uc73c\uba70, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \uac04\uc18c\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubaa8\ubc14\uc77c \ud3fc\uc744 \uc0ac\uc6a9\ud558\uba74 \ucf54\ub4dc\uc758 \uc911\ubcf5\uc744 \uc904\uc774\uace0 \ub354 \uc27d\uac8c \ub370\uc774\ud130\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ubaa8\ub378\uc744 \uc815\uc758\ud558\uace0 \uadf8\uc5d0 \ub300\uc751\ud558\ub294 \ubaa8\ub378 \ud3fc\uc744 \uc0dd\uc131\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code class=\"language-python\">from django.db import models\n\nclass Contact(models.Model):\n    name = models.CharField(max_length=100)\n    email = models.EmailField()\n    message = models.TextField()\n\nfrom django import forms\n\nclass ContactForm(forms.ModelForm):\n    class Meta:\n        model = Contact\n        fields = ['name', 'email', 'message']\n    <\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\uc5d0\uc11c <code>Contact<\/code> \ubaa8\ub378\uc740 \uc774\ub984, \uc774\uba54\uc77c, \uba54\uc2dc\uc9c0\ub97c \ud544\ub4dc\ub85c \uac00\uc9c0\uba70, <code>ContactForm<\/code> \ubaa8\ub378 \ud3fc\uc740 \uc774 \ubaa8\ub378\uc758 \ud544\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \ud3fc\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<h2>4. \ubaa8\ub378 \ud3fc \uc0ac\uc6a9\ubc95<\/h2>\n<p>\ubaa8\ub378 \ud3fc\uc744 \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc740 \uc77c\ubc18 \ud3fc\uacfc \uc720\uc0ac\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc81c\ucd9c\ub41c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud558\ub294 `views.py`\uc758 \uc608\uc785\ub2c8\ub2e4:<\/p>\n<pre><code class=\"language-python\">def contact_view(request):\n    if request.method == 'POST':\n        form = ContactForm(request.POST)\n        if form.is_valid():\n            form.save()  # \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\n            return HttpResponse('\uba54\uc2dc\uc9c0\uac00 \uc804\uc1a1\ub418\uc5c8\uc2b5\ub2c8\ub2e4!')\n    else:\n        form = ContactForm()\n\n    return render(request, 'contact.html', {'form': form})\n    <\/code><\/pre>\n<p>\ud3fc\uc774 \uc81c\ucd9c\ub418\uace0 \uc720\ud6a8\uc131\uc774 \ud655\uc778\ub418\uba74, <code>save()<\/code> \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uc5ec \ub370\uc774\ud130\ub97c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<h2>5. \ud15c\ud50c\ub9bf\uc5d0\uc11c \ud3fc \ud45c\uc2dc\ud558\uae30<\/h2>\n<p>\uc774\uc81c \uc0dd\uc131\ud55c \ud3fc\uc744 HTML \ud15c\ud50c\ub9bf\uc5d0\uc11c \ub80c\ub354\ub9c1\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc774 \ud15c\ud50c\ub9bf\uc5d0\uc11c \ud3fc\uc744 \ud45c\uc2dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code class=\"language-html\">&lt;form method=\"post\"&gt;\n    {% csrf_token %}\n    {{ form.as_p }}\n    &lt;button type=\"submit\"&gt;\uc81c\ucd9c&lt;\/button&gt;\n&lt;\/form&gt;\n    <\/code><\/pre>\n<p>\uc5ec\uae30\uc11c <code>{{ form.as_p }}<\/code>\ub294 \ud3fc\uc744 \ub2e8\ub77d\uc73c\ub85c \uac10\uc2f8\uc11c \ub80c\ub354\ub9c1\ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ud544\ub4dc\uac00 \uc801\uc808\ud788 \ud3ec\ub9f7\ub429\ub2c8\ub2e4. CSRF \ud1a0\ud070\uc744 \uc78a\uc9c0 \ub9d0\uace0 \ud3ec\ud568\uc2dc\ucf1c\uc57c \ud569\ub2c8\ub2e4!<\/p>\n<h2>6. \ud3fc \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5<\/h2>\n<p>Django \ud3fc\uc740 \uae30\ubcf8\uc801\uc73c\ub85c \uac04\ub2e8\ud55c \uad6c\uc131\uc744 \uc81c\uacf5\ud558\uc9c0\ub9cc, \ud544\uc694\uc5d0 \ub530\ub77c \ud544\ub4dc\ub97c \ucee4\uc2a4\ud130\ub9c8\uc774\uc988\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ud544\ub4dc\uc758 \uc2a4\ud0c0\uc77c\uc774\ub098 \ud15c\ud50c\ub9bf\uc744 \ubcc0\uacbd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-python\">class ContactForm(forms.ModelForm):\n    class Meta:\n        model = Contact\n        fields = ['name', 'email', 'message']\n        widgets = {\n            'message': forms.Textarea(attrs={'placeholder': '\uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ud558\uc138\uc694...'}),\n            'name': forms.TextInput(attrs={'class': 'form-control'}),\n            'email': forms.EmailInput(attrs={'class': 'form-control'}),\n        }\n    <\/code><\/pre>\n<p>\uc704 \uc608\uc81c\uc5d0\uc11c\ub294 <code>widgets<\/code>\uc744 \uc0ac\uc6a9\ud558\uc5ec \uac01 \ud544\ub4dc\uc758 HTML \uc18d\uc131\uc744 \uc218\uc815\ud588\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ub354\uc6b1 \uc9c1\uad00\uc801\uc73c\ub85c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>7. \ud544\ub4dc \uac80\uc99d \ubc0f \uc5d0\ub7ec \uba54\uc2dc\uc9c0 \ucc98\ub9ac<\/h2>\n<p>\ud3fc\uc740 \uc790\ub3d9\uc73c\ub85c \uc720\ud6a8\uc131 \uac80\uc0ac\ub97c \uc218\ud589\ud558\uc9c0\ub9cc, \ub2f9\uc2e0\uc774 \uc6d0\ud558\ub294 \uacbd\uc6b0 \uc0ac\uc6a9\uc790 \uc815\uc758 \uac80\uc99d \ub85c\uc9c1\uc744 \ucd94\uac00\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc774\uba54\uc77c \ud615\uc2dd\uc774 \uc544\ub2cc \uacbd\uc6b0 \uc0ac\uc6a9\uc790 \uc815\uc758 \uc5d0\ub7ec \uba54\uc2dc\uc9c0\ub97c \ud45c\uc2dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-python\">class ContactForm(forms.ModelForm):\n    class Meta:\n        model = Contact\n        fields = ['name', 'email', 'message']\n\n    def clean_email(self):\n        email = self.cleaned_data.get('email')\n        if \"@\" not in email:\n            raise forms.ValidationError('\uc720\ud6a8\ud55c \uc774\uba54\uc77c \ud615\uc2dd\uc774 \uc544\ub2d9\ub2c8\ub2e4.')\n        return email\n    <\/code><\/pre>\n<p>\uc704\uc640 \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c <code>clean_<\/code> \uba54\uc11c\ub4dc\ub97c \uc624\ubc84\ub77c\uc774\ub4dc\ud558\uc5ec \ud2b9\uc815 \ud544\ub4dc\uc5d0 \ub300\ud55c \uc0ac\uc6a9\uc790 \uc815\uc758 \uac80\uc99d \ub85c\uc9c1\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc720\ud6a8\uc131 \uac80\uc0ac\uc5d0 \uc2e4\ud328\ud560 \uacbd\uc6b0 \ubc1c\uc0dd\ud558\ub294 \uc608\uc678\ub294 \uc790\ub3d9\uc73c\ub85c \uc0ac\uc6a9\uc790\uc5d0\uac8c \uc5d0\ub7ec \uba54\uc2dc\uc9c0\ub97c \ud45c\uc2dc\ud558\uac8c \ub429\ub2c8\ub2e4.<\/p>\n<h2>8. \uacb0\ub860<\/h2>\n<p>Django\uc5d0\uc11c \ud3fc\uacfc \ubaa8\ub378 \ud3fc\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc740 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc911\uc694\ud55c \ubd80\ubd84\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c \uc18c\uac1c\ud55c \ud3fc\uc744 \uc0dd\uc131\ud558\uace0 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud558\ub294 \ubc29\ubc95, \ubaa8\ub378 \ud3fc\uc744 \ud1b5\ud574 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uba85\ud655\ud55c \uc774\ud574\ub97c \uac16\ucd9c \uc218 \uc788\uc5c8\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. Django\ub294 \uac04\ub2e8\ud55c \ud14d\uc2a4\ud2b8 \uc785\ub825\uc5d0\uc11c \ubcf5\uc7a1\ud55c \ub370\uc774\ud130 \uad6c\uc870\uc5d0 \uc774\ub974\uae30\uae4c\uc9c0 \uc720\uc5f0\ud558\uac8c \ud578\ub4e4\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc5ec\ub7ec\ubd84\uc758 Django \ud504\ub85c\uc81d\ud2b8\uc5d0 \ub3c4\uc6c0\uc774 \ub418\uae30\ub97c \ubc14\ub77c\uba70, \uc55e\uc73c\ub85c \ub354 \ub9ce\uc740 \uac15\uc88c\uc5d0\uc11c \uc720\uc6a9\ud55c \uc815\ubcf4\ub97c \uae30\ub300\ud574 \uc8fc\uc138\uc694!<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \ube60\ub974\uace0 \ud3b8\ub9ac\ud558\uac8c \ub9cc\ub4e4\uc5b4\uc8fc\ub294 \ud30c\uc774\uc36c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc\uacfc \ubaa8\ub378 \ud3fc \uc0ac\uc6a9\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud3fc\uc740 \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \ucc98\ub9ac\ud558\uace0 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud558\ub294 \ub3c4\uad6c\ub85c \uc0ac\uc6a9\ub418\uba70, \ubaa8\ub378 \ud3fc\uc740 Django \ubaa8\ub378\uc758 \ud544\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \uc790\ub3d9\uc73c\ub85c \ud3fc\uc744 \uc0dd\uc131\ud558\uace0 \uad00\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. 1. Django \ud3fc(Form) \uc18c\uac1c Django\uc758 \ud3fc \ud074\ub798\uc2a4\ub294 HTML \uc785\ub825\uc744 \ucc98\ub9ac\ud558\ub294 \uc720\uc6a9\ud55c \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38704\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[185],"tags":[],"class_list":["post-38704","post","type-post","status-publish","format-standard","hentry","category-django"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/38704\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Django\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \ube60\ub974\uace0 \ud3b8\ub9ac\ud558\uac8c \ub9cc\ub4e4\uc5b4\uc8fc\ub294 \ud30c\uc774\uc36c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc\uacfc \ubaa8\ub378 \ud3fc \uc0ac\uc6a9\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud3fc\uc740 \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \ucc98\ub9ac\ud558\uace0 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud558\ub294 \ub3c4\uad6c\ub85c \uc0ac\uc6a9\ub418\uba70, \ubaa8\ub378 \ud3fc\uc740 Django \ubaa8\ub378\uc758 \ud544\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \uc790\ub3d9\uc73c\ub85c \ud3fc\uc744 \uc0dd\uc131\ud558\uace0 \uad00\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. 1. Django \ud3fc(Form) \uc18c\uac1c Django\uc758 \ud3fc \ud074\ub798\uc2a4\ub294 HTML \uc785\ub825\uc744 \ucc98\ub9ac\ud558\ub294 \uc720\uc6a9\ud55c \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 &quot;DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38704\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T19:08:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:43:34+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38704\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38704\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30\",\"datePublished\":\"2024-11-01T19:08:59+00:00\",\"dateModified\":\"2024-11-26T06:43:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38704\/\"},\"wordCount\":26,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"DJango\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38704\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38704\/\",\"name\":\"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T19:08:59+00:00\",\"dateModified\":\"2024-11-26T06:43:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38704\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38704\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38704\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/38704\/","og_locale":"ko_KR","og_type":"article","og_title":"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Django\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \ube60\ub974\uace0 \ud3b8\ub9ac\ud558\uac8c \ub9cc\ub4e4\uc5b4\uc8fc\ub294 \ud30c\uc774\uc36c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc\uacfc \ubaa8\ub378 \ud3fc \uc0ac\uc6a9\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud3fc\uc740 \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \ucc98\ub9ac\ud558\uace0 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud558\ub294 \ub3c4\uad6c\ub85c \uc0ac\uc6a9\ub418\uba70, \ubaa8\ub378 \ud3fc\uc740 Django \ubaa8\ub378\uc758 \ud544\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \uc790\ub3d9\uc73c\ub85c \ud3fc\uc744 \uc0dd\uc131\ud558\uace0 \uad00\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. 1. Django \ud3fc(Form) \uc18c\uac1c Django\uc758 \ud3fc \ud074\ub798\uc2a4\ub294 HTML \uc785\ub825\uc744 \ucc98\ub9ac\ud558\ub294 \uc720\uc6a9\ud55c \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 \"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/38704\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T19:08:59+00:00","article_modified_time":"2024-11-26T06:43:34+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38704\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38704\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30","datePublished":"2024-11-01T19:08:59+00:00","dateModified":"2024-11-26T06:43:34+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38704\/"},"wordCount":26,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["DJango\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38704\/","url":"https:\/\/atmokpo.com\/w\/38704\/","name":"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T19:08:59+00:00","dateModified":"2024-11-26T06:43:34+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38704\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38704\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38704\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"DJango \uc11c\ubc84\uac1c\ubc1c, \ud3fc(Form) \ubc0f \ubaa8\ub378 \ud3fc(ModelForm) \uc0ac\uc6a9\ud558\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=38704"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38704\/revisions"}],"predecessor-version":[{"id":38705,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38704\/revisions\/38705"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}