{"id":38680,"date":"2024-11-01T19:08:48","date_gmt":"2024-11-01T19:08:48","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38680"},"modified":"2024-11-26T06:43:38","modified_gmt":"2024-11-26T06:43:38","slug":"django-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-django%ec%9d%98-%ed%8f%bc-%ec%8b%9c%ec%8a%a4%ed%85%9c-%ec%9d%b4%ed%95%b4%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38680\/","title":{"rendered":"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<article>\n<section>\n<h2>\uc18c\uac1c<\/h2>\n<p>Django\ub294 \uac15\ub825\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ub2e4\uc591\ud55c \uae30\ub2a5\uacfc \uac15\ub825\ud55c ORM(Object Relational Mapping) \uc2dc\uc2a4\ud15c\uc744 \ud1b5\ud574 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uac1c\ubc1c\uc744 \ub2e8\uc21c\ud654\ud569\ub2c8\ub2e4. \uc774 \uc911 \ud558\ub098\uac00 \ubc14\ub85c Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc785\ub2c8\ub2e4. \ud3fc \uc2dc\uc2a4\ud15c\uc740 \uc0ac\uc6a9\uc790\ub85c\ubd80\ud130 \ub370\uc774\ud130\ub97c \uc218\uc9d1\ud558\uace0 \uac80\uc99d\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc744 \uc774\ud574\ud558\uace0, \uc774\ub97c \ud65c\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\uc640 \ud568\uaed8 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>Django \ud3fc \uc2dc\uc2a4\ud15c\uc758 \uac1c\uc694<\/h2>\n<p>Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc740 <code>django.forms<\/code> \ubaa8\ub4c8\uc744 \ud1b5\ud574 \uc81c\uacf5\ub429\ub2c8\ub2e4. \uc774 \uc2dc\uc2a4\ud15c\uc740 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\uc790\ub85c\ubd80\ud130 \uc815\ubcf4\ub97c \uc785\ub825\ubc1b\uae30 \uc704\ud55c \uac15\ub825\ud55c \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. Django \ud3fc\uc740 \ub370\uc774\ud130 \uc720\ud6a8\uc131 \uac80\uc0ac\ub97c \uc790\ub3d9\ud654\ud558\uace0, HTML \ud3fc \uc694\uc18c\ub97c \uc0dd\uc131\ud558\uba70, \uc0ac\uc6a9\uc790\uc5d0\uac8c \uc785\ub825 \uc624\ub958\ub97c \uc54c\ub824\uc8fc\ub294 \ub4f1\uc758 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4.<\/p>\n<p>\ud3fc\uc744 \uc0ac\uc6a9\ud558\ub294 \uc8fc\ub41c \uc774\uc720\ub294:<\/p>\n<ul>\n<li>\uc0ac\uc6a9\uc790 \uc785\ub825 \uac80\uc99d: \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \ub370\uc774\ud130\uac00 \uc11c\ubc84\ub85c \uc804\uc1a1\ub418\uc9c0 \uc54a\ub3c4\ub85d \ud569\ub2c8\ub2e4.<\/li>\n<li>\ud3fc\uc758 \uc9c1\ub82c\ud654 \ubc0f \uc5ed\uc9c1\ub82c\ud654: \ub370\uc774\ud130\ub97c \ubd88\ub7ec\uc624\uace0 \uc800\uc7a5\ud558\ub294 \uacfc\uc815\uc744 \uac04\ud3b8\ud558\uac8c \ud574\uc90d\ub2c8\ub2e4.<\/li>\n<li>HTML \ud3fc \uc0dd\uc131: Django\uac00 \uae30\ubcf8\uc801\uc73c\ub85c \uc81c\uacf5\ud558\ub294 HTML \ud3fc \uc694\uc18c\ub4e4\uc744 \uc27d\uac8c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\ubcf4\uc548: SQL \uc778\uc81d\uc158\uc774\ub098 XSS \uacf5\uaca9\uc73c\ub85c\ubd80\ud130 \ubcf4\ud638\ud558\uae30 \uc704\ud55c CSRF(Cross-Site Request Forgery) \ubc29\uc5b4 \uae30\ub2a5\uc774 \ub0b4\uc7a5\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>Django \ud3fc \ud074\ub798\uc2a4 \uc791\uc131\ud558\uae30<\/h2>\n<p>Django \ud3fc\uc744 \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 \uba3c\uc800 \ud3fc \ud074\ub798\uc2a4\ub97c \uc815\uc758\ud574\uc57c \ud569\ub2c8\ub2e4. \ud3fc \ud074\ub798\uc2a4\ub294 <code>forms.Form<\/code> \ub610\ub294 <code>forms.ModelForm<\/code>\uc744 \uc0c1\uc18d\ubc1b\uc544 \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 <code>forms.Form<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \uae30\ubcf8 \ud3fc \ud074\ub798\uc2a4\ub97c \uc791\uc131\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc608\uc81c: \uac04\ub2e8\ud55c \uc0ac\uc6a9\uc790 \ub4f1\ub85d \ud3fc<\/h3>\n<pre><code>from django import forms\n\nclass UserRegistrationForm(forms.Form):\n    username = forms.CharField(max_length=150, required=True, widget=forms.TextInput(attrs={'placeholder': '\uc0ac\uc6a9\uc790 \uc774\ub984'}))\n    email = forms.EmailField(required=True, widget=forms.EmailInput(attrs={'placeholder': '\uc774\uba54\uc77c \uc8fc\uc18c'}))\n    password = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder': '\ube44\ubc00\ubc88\ud638'}))\n    confirm_password = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder': '\ube44\ubc00\ubc88\ud638 \ud655\uc778'}))\n<\/code><\/pre>\n<p>\uc774 \ucf54\ub4dc \ube14\ub85d\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790 \uc774\ub984, \uc774\uba54\uc77c, \ube44\ubc00\ubc88\ud638, \ud655\uc778 \ube44\ubc00\ubc88\ud638\ub97c \uc785\ub825\ubc1b\uae30 \uc704\ud55c \uac04\ub2e8\ud55c \ud3fc \ud074\ub798\uc2a4\ub97c \uc815\uc758\ud588\uc2b5\ub2c8\ub2e4. \uac01 \ud544\ub4dc\uc5d0 \ub300\ud55c \uc720\ud6a8\uc131 \uac80\uc0ac\ub97c \uc704\ud574 <code>required<\/code>\uc640 <code>max_length<\/code> \uc18d\uc131\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\ud3fc \ucc98\ub9ac\ud558\uae30<\/h2>\n<p>\ud3fc\uc744 \ucc98\ub9ac\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc0ac\uc6a9\uc790\uac00 \uc81c\ucd9c\ud55c \ub370\uc774\ud130\ub97c \uac80\uc0ac\ud558\uace0, \uc624\ub958\uac00 \uc788\ub294\uc9c0 \ud655\uc778\ud55c \ud6c4, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ud558\ub294 \ub4f1\uc758 \uc791\uc5c5\uc744 \uc218\ud589\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 Django\uc758 \ubdf0(View)\uc640 \uc5f0\uacb0\ud558\uc5ec \ud3fc \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc608\uc81c: \uc0ac\uc6a9\uc790 \ub4f1\ub85d \ubdf0 \uc791\uc131\ud558\uae30<\/h3>\n<pre><code>from django.shortcuts import render, redirect\nfrom .forms import UserRegistrationForm\n\ndef register(request):\n    if request.method == 'POST':\n        form = UserRegistrationForm(request.POST)\n        if form.is_valid():\n            # \ub370\uc774\ud130\uac00 \uc720\ud6a8\ud55c \uacbd\uc6b0 \ucc98\ub9ac\n            username = form.cleaned_data['username']\n            email = form.cleaned_data['email']\n            password = form.cleaned_data['password']\n            # \uc0ac\uc6a9\uc790 \uc0dd\uc131 \ub85c\uc9c1 (\uc608: User \ubaa8\ub378\uc5d0 \uc800\uc7a5)\n            # \uc790\ub3d9\uc73c\ub85c \uc0ac\uc6a9\uc790 \uc778\uc99d \ub85c\uc9c1\ub3c4 \ucd94\uac00 \uac00\ub2a5\n            return redirect('success')  # \uc131\uacf5 \uc2dc \ub9ac\ub2e4\uc774\ub809\ud2b8\n            \n    else:\n        form = UserRegistrationForm()\n    return render(request, 'register.html', {'form': form})\n<\/code><\/pre>\n<p>\uc704\uc758 \uc608\uc81c\uc5d0\uc11c <code>register<\/code> \ubdf0\ub294 GET \uc694\uccad\uacfc POST \uc694\uccad\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4. POST \uc694\uccad \uc2dc \uc785\ub825\ub41c \ub370\uc774\ud130\uac00 \uc720\ud6a8\ud55c\uc9c0 \uac80\uc0ac\ud558\uace0, \uc801\uc808\ud55c \ucc98\ub9ac\ub97c \ud55c \ud6c4 \uc131\uacf5 \ud398\uc774\uc9c0\ub85c \ub9ac\ub2e4\uc774\ub809\ud2b8\ud569\ub2c8\ub2e4. \uc785\ub825 \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uba74 \ub2e4\uc2dc \uc785\ub825 \ud3fc\uc744 \uc0ac\uc6a9\uc790\uc5d0\uac8c \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\ud15c\ud50c\ub9bf\uc5d0\uc11c \ud3fc \uc0ac\uc6a9\ud558\uae30<\/h2>\n<p>Django\uc758 \ud15c\ud50c\ub9bf \uc2dc\uc2a4\ud15c\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud3fc\uc744 HTML\ub85c \ub80c\ub354\ub9c1\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uc5d0\uac8c \ud3fc\uc744 \ubcf4\uc5ec\uc8fc\uae30 \uc704\ud574\uc11c\ub294 HTML \ud30c\uc77c\uc744 \uc791\uc131\ud558\uc5ec \ud3fc\uc744 \ud45c\uc2dc\ud558\ub294 \uc791\uc5c5\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<h3>\uc608\uc81c: register.html \ud15c\ud50c\ub9bf \uc791\uc131\ud558\uae30<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"ko\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n    &lt;title&gt;\uc0ac\uc6a9\uc790 \ub4f1\ub85d&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;\uc0ac\uc6a9\uc790 \ub4f1\ub85d&lt;\/h1&gt;\n    &lt;form method=\"post\"&gt;\n        {% csrf_token %}\n        {{ form.as_p }}\n        &lt;button type=\"submit\"&gt;\ub4f1\ub85d&lt;\/button&gt;\n    &lt;\/form&gt;\n    &lt;div&gt;\n        {% if form.non_field_errors %}\n            &lt;p style=\"color: red;\"&gt;{{ form.non_field_errors }}&lt;\/p&gt;\n        {% endif %}\n    &lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>\ud15c\ud50c\ub9bf \ud30c\uc77c\uc5d0\uc11c <code>{{ form.as_p }}<\/code>\ub97c \uc0ac\uc6a9\ud558\uba74 \ud3fc \ud544\ub4dc\uac00 HTML\ub85c \ub80c\ub354\ub9c1\ub429\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uc81c\ucd9c\ud55c \ub370\uc774\ud130\ub85c \uc778\ud574 \ubc1c\uc0dd\ud55c \uc624\ub958\ub294 <code>non_field_errors<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud45c\uc2dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\ud3fc \uac80\uc99d \ubc0f \uc624\ub958 \ucc98\ub9ac<\/h2>\n<p>Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc740 \uc785\ub825\uac12\uc758 \uc720\ud6a8\uc131\uc744 \uc790\ub3d9\uc73c\ub85c \uac80\uc0ac\ud558\uace0, \uc624\ub958\uac00 \uc788\uc744 \uacbd\uc6b0 \uc774\ub97c \ud3fc \uac1d\uccb4\uc5d0 \uc800\uc7a5\ud569\ub2c8\ub2e4. \uc774 \uc624\ub958 \uc815\ubcf4\ub294 \ud15c\ud50c\ub9bf\uc5d0\uc11c \uc0ac\uc6a9\uc790\uc5d0\uac8c \ucd9c\ub825\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uac01 \ud544\ub4dc\uc5d0 \ub300\ud55c \uc624\ub958\ub294 <code>form.errors<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc811\uadfc\ud560 \uc218 \uc788\uc73c\uba70, \ub2e4\uc74c\uacfc \uac19\uc740 \ubc29\ubc95\uc73c\ub85c \uac01 \ud544\ub4dc\ubcc4 \uc624\ub958\ub97c \ucd9c\ub825\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>{% for field in form %}\n    &lt;div&gt;\n        {{ field.label_tag }}\n        {{ field }}\n        {% if field.errors %}\n            &lt;p style=\"color: red;\"&gt;{{ field.errors }}&lt;\/p&gt;\n        {% endif %}\n    &lt;\/div&gt;\n{% endfor %}<\/code><\/pre>\n<p>\uc774 \ucf54\ub4dc\ub294 \uac01 \ud544\ub4dc\ub97c \ubc18\ubcf5\ud558\uc5ec \ub77c\ubca8\uacfc \uc785\ub825 \uc694\uc18c, \uadf8\ub9ac\uace0 \uc624\ub958 \uba54\uc2dc\uc9c0\ub97c \ucd9c\ub825\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uae30 \uc704\ud574 \ud544\ub4dc\ubcc4 \uc624\ub958\ub97c \ubcf4\uc5ec\uc8fc\ub294 \uac83\uc774 \ub9e4\uc6b0 \uc911\uc694\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>ModelForm\uc744 \uc0ac\uc6a9\ud558\uc5ec \ubaa8\ub378\uacfc\uc758 \uc5f0\ub3d9<\/h2>\n<p>Django\uc758 <code>ModelForm<\/code>\uc744 \uc0ac\uc6a9\ud558\uba74 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378\uacfc \uc9c1\uc811 \uc5f0\ub3d9\ud558\uc5ec \ub370\uc774\ud130 \uc720\ud6a8\uc131 \uac80\uc0ac \ubc0f \uc800\uc7a5\uc744 \ubcf4\ub2e4 \ud6a8\uc728\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. ModelForm\uc744 \ud65c\uc6a9\ud558\uba74 \ucd94\uac00\uc801\uc778 \uc791\uc5c5 \uc5c6\uc774\ub3c4 \ubaa8\ub378 \ub370\uc774\ud130\uc640 \ud3fc\uc744 \uc27d\uac8c \uc5f0\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc608\uc81c: User \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\ub294 \ub4f1\ub85d \ud3fc<\/h3>\n<pre><code>from django import forms\nfrom django.contrib.auth.models import User\n\nclass UserRegistrationForm(forms.ModelForm):\n    password = forms.CharField(widget=forms.PasswordInput(), label=\"\ube44\ubc00\ubc88\ud638\")\n    confirm_password = forms.CharField(widget=forms.PasswordInput(), label=\"\ube44\ubc00\ubc88\ud638 \ud655\uc778\")\n\n    class Meta:\n        model = User\n        fields = ['username', 'email', 'password']\n\n    def clean(self):\n        cleaned_data = super().clean()\n        password = cleaned_data.get(\"password\")\n        confirm_password = cleaned_data.get(\"confirm_password\")\n\n        if password != confirm_password:\n            raise forms.ValidationError(\"\ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.\")\n<\/code><\/pre>\n<p>\uc704\uc758 \uc608\uc81c\uc5d0\uc11c <code>UserRegistrationForm<\/code>\uc740 Django\uc758 \uae30\ubcf8 User \ubaa8\ub378\uc744 \uae30\ubc18\uc73c\ub85c \ud558\ub294 ModelForm\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uc785\ub825\uac12\uc744 \uae30\ubc18\uc73c\ub85c \ube44\ubc00\ubc88\ud638 \uc77c\uce58 \ud655\uc778\uc744 \uc9c4\ud589\ud558\ub294 <code>clean<\/code> \uba54\uc18c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucd94\uac00 \uac80\uc99d \ub85c\uc9c1\uc744 \uc0bd\uc785\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\ud3fc\uc758 \uae30\ubcf8 \uc81c\uacf5 \uba54\uc18c\ub4dc<\/h2>\n<p>Django \ud3fc \ud074\ub798\uc2a4\ub294 \uc785\ub825 \ub370\uc774\ud130\uc758 \uc720\ud6a8\uc131 \uac80\uc0ac\ub97c \uc704\ud574 \uba87 \uac00\uc9c0 \uae30\ubcf8 \uba54\uc18c\ub4dc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li><code>is_valid()<\/code>: \ud3fc\uc774 \uc720\ud6a8\ud55c\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4. \uc774 \uba54\uc18c\ub4dc\ub97c \ud638\ucd9c\ud558\uba74 \ub370\uc774\ud130\uac00 \uc720\ud6a8\ud558\uba74 True\ub97c \ubc18\ud658\ud558\uace0, \uc624\ub958\uac00 \uc788\uc744 \uacbd\uc6b0\ub294 False\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li><code>cleaned_data<\/code>: \uc720\ud6a8\ud55c \ud3fc \ud544\ub4dc \uac12\uc774 \ud3ec\ud568\ub41c \ub515\uc154\ub108\ub9ac\uc785\ub2c8\ub2e4. \ud544\ub4dc \uc774\ub984\uc744 \ud0a4\ub85c \uc0ac\uc6a9\ud558\uc5ec \uac01 \ud544\ub4dc\uc758 \uac12\uc744 \uac00\uc838\uc62c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><code>errors<\/code>: \uac01 \ud544\ub4dc\uc758 \uc720\ud6a8\uc131 \uac80\uc0ac \uc624\ub958\ub97c \ud3ec\ud568\ud558\ub294 \ub515\uc154\ub108\ub9ac\uc785\ub2c8\ub2e4. \uc624\ub958\uac00 \uc5c6\ub294 \ud544\ub4dc\ub294 \uc0ad\uc81c\ub429\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>\ud3fc \uc704\uc82f \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5<\/h2>\n<p>Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc5d0\uc11c\ub294 \uae30\ubcf8 \uc81c\uacf5\ud558\ub294 \uc704\uc82f \uc678\uc5d0\ub3c4 \uc790\uc2e0\ub9cc\uc758 \ucee4\uc2a4\ud140 \uc704\uc82f\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uac01 \ud544\ub4dc\uc5d0 \uc6d0\ud558\ub294 \uc704\uc82f\uc744 \uc124\uc815\ud558\uac70\ub098, HTML\/CSS \ud074\ub798\uc2a4, \uc2a4\ud0c0\uc77c\uc744 \ucd94\uac00\ud558\uc5ec \uc678\uad00\uc744 \uc870\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc608\uc81c: \uc0ac\uc6a9\uc790 \uc815\uc758 \uc704\uc82f \uc0dd\uc131<\/h3>\n<pre><code>from django import forms\n\nclass CustomTextInput(forms.TextInput):\n    def __init__(self, *args, **kwargs):\n        kwargs['attrs'] = {'class': 'custom-class', 'placeholder': 'Enter text'}\n        super().__init__(*args, **kwargs)\n\nclass UserRegistrationForm(forms.Form):\n    username = forms.CharField(max_length=150, widget=CustomTextInput())\n<\/code><\/pre>\n<p>\uc704\uc640 \uac19\uc774 \ucee4\uc2a4\ud140 \uc704\uc82f\uc744 \uc0dd\uc131\ud558\uc5ec \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \uc774\ub97c \ud1b5\ud574 \uc785\ub825 \ud544\ub4dc\uc5d0 \uc801\uc6a9\ud560 HTML \uc18d\uc131\uc744 \uc27d\uac8c \uc870\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\uc11c\ubc84 \uce21 \uc720\ud6a8\uc131 \uac80\uc0ac<\/h2>\n<p>\ud3fc\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21\uc5d0\uc11c \uae30\ubcf8\uc801\uc778 \uc720\ud6a8\uc131 \uac80\uc0ac\ub97c \uc218\ud589\ud560 \uc218 \uc788\uc9c0\ub9cc, \uc11c\ubc84 \uce21\uc5d0\uc11c\ub3c4 \ubc18\ub4dc\uc2dc \uac80\uc99d\uc744 \uc218\ud589\ud574\uc57c \ud569\ub2c8\ub2e4. \uc11c\ubc84 \uce21 \uac80\uc99d\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21 \ucf54\ub4dc\uac00 \uc870\uc791\ub420 \uc218 \uc788\uae30 \ub54c\ubb38\uc5d0, \ubcf4\uc548\uc0c1 \ub9e4\uc6b0 \uc911\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p>\uc11c\ubc84 \uce21 \uc720\ud6a8\uc131 \uac80\uc99d\uc740 \ud3fc\uc774 \uc81c\ucd9c\ub420 \ub54c\ub9c8\ub2e4 \uc11c\ubc84\uc5d0\uc11c \ubc1c\uc0dd\ud558\uba70, \uc774 \uacfc\uc815\uc5d0\uc11c \uac01 \ud544\ub4dc\uc5d0 \ub300\ud574 \ub2e4\uc2dc \ud55c\ubc88 \uac80\uc99d\uc744 \uc218\ud589\ud558\uace0 \uc624\ub958 \ucc98\ub9ac\ub97c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\ud3fc \ud15c\ud50c\ub9bf\uacfc \uc2a4\ud0c0\uc77c\ub9c1<\/h2>\n<p>Django \ud15c\ud50c\ub9bf\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud3fc\uc744 HTML\ub85c \uc0dd\uc131\ud55c \ud6c4, CSS\ub97c \ud1b5\ud574 \ud3fc\uc758 \uc2a4\ud0c0\uc77c\uc744 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \ub192\uc774\uae30 \uc704\ud574 \ud3fc\uc5d0 CSS \ud074\ub798\uc2a4\ub97c \ucd94\uac00\ud558\uace0, \uc801\uc808\ud55c \uc2a4\ud0c0\uc77c\uc744 \uc801\uc6a9\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.<\/p>\n<h3>\uc608\uc81c: CSS \ucd94\uac00\ud558\uae30<\/h3>\n<pre><code>&lt;style&gt;\n.custom-class {\n    border: 1px solid #ccc;\n    padding: 10px;\n    border-radius: 5px;\n}\n&lt;\/style&gt;<\/code><\/pre>\n<p>\uc704\uc640 \uac19\uc774 CSS \uc2a4\ud0c0\uc77c\uc744 \ucd94\uac00\ud558\uc5ec \ud3fc \uc694\uc18c\uc758 \uc678\uad00\uc744 \ubcc0\uacbd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud568\uaed8 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c CSS \ud504\ub808\uc784\uc6cc\ud06c(\uc608: Bootstrap)\uc744 \ud1b5\ud574 \ub354\uc6b1 \uc2dc\uac01\uc801\uc73c\ub85c \ub9e4\ub825\uc801\uc778 \ud3fc\uc744 \uc27d\uac8c \uad6c\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>Ajax\ub85c \ud3fc \uc81c\ucd9c\ud558\uae30<\/h2>\n<p>\ud3fc\uacfc \uad00\ub828\ub41c \ub3d9\uc791\uc744 \ube44\ub3d9\uae30\uc801\uc73c\ub85c \uc218\ud589\ud558\uae30 \uc704\ud574 Ajax\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Ajax\ub97c \ud1b5\ud574 \ud398\uc774\uc9c0\ub97c \uc0c8\ub85c \uace0\uce68\ud558\uc9c0 \uc54a\uace0\ub3c4 \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \uc81c\ucd9c\ud558\uace0, \uadf8 \uacb0\uacfc\ub97c \ub3d9\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc608\uc81c: Ajax \uc81c\ucd9c\ud558\uae30<\/h3>\n<pre><code>&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js\"&gt;&lt;\/script&gt;\n&lt;script&gt;\n$(document).ready(function() {\n    $(\"form\").on(\"submit\", function(e) {\n        e.preventDefault(); \/\/ \uae30\ubcf8 \uc81c\ucd9c \ubc29\uc9c0\n        $.ajax({\n            type: \"POST\",\n            url: $(this).attr(\"action\"),\n            data: $(this).serialize(),\n            success: function(response) {\n                alert(\"\uc81c\ucd9c \uc131\uacf5: \" + response);\n            },\n            error: function(error) {\n                alert(\"\uc81c\ucd9c \uc2e4\ud328\");\n            }\n        });\n    });\n});\n&lt;\/script&gt;<\/code><\/pre>\n<p>Ajax\ub97c \ud65c\uc6a9\ud558\uc5ec \uc785\ub825\uac12\uc744 \uc11c\ubc84\uc5d0 \ube44\ub3d9\uae30\uc801\uc73c\ub85c \uc81c\ucd9c\ud558\uace0, \uacb0\uacfc\uc5d0 \ub530\ub77c \uc0ac\uc6a9\uc790\uc5d0\uac8c \uc54c\ub9bc\uc744 \uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub294 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \uac1c\uc120\ud558\ub294 \ub370 \ud070 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\uacb0\ub860<\/h2>\n<p>Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc740 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0\uc11c \ub9e4\uc6b0 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \uc720\ud6a8\uc131 \uac80\uc0ac\ud558\uace0, \ud3fc\uc744 HTML\ub85c \uc27d\uac8c \ub80c\ub354\ub9c1\ud558\uba70, \ubcf4\uc548 \uae30\ub2a5\uae4c\uc9c0 \uc81c\uacf5\ud558\ub294 Django \ud3fc \uc2dc\uc2a4\ud15c\uc744 \ud65c\uc6a9\ud558\uc5ec \ub354 \ub098\uc740 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud76c\ub9dd\ud558\ub294 \ub300\ub85c \ucee4\uc2a4\ud130\ub9c8\uc774\uc988\ud558\uc5ec \ubcf5\uc7a1\ud55c \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ucc98\ub9ac\ud558\uace0, \uc0ac\uc6a9\uc790\uac00 \uc624\ub958\ub97c \uc27d\uac8c \uc774\ud574\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc5d0 \ub300\ud574 \uc2ec\uce35\uc801\uc73c\ub85c \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc5ec\ub7ec\ubd84\ub3c4 Django\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac15\ub825\ud558\uace0 \uc720\uc5f0\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \ucd94\uac00\uc801\uc778 \ud559\uc2b5 \uc790\ub8cc\ub098 \uc9c8\ubb38\uc774 \uc788\ub2e4\uba74 \uc5b8\uc81c\ub4e0\uc9c0 \ub354 \ud0d0\uad6c\ud574 \ubcf4\uc2dc\uae38 \ucd94\ucc9c\ub4dc\ub9bd\ub2c8\ub2e4!<\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc18c\uac1c Django\ub294 \uac15\ub825\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ub2e4\uc591\ud55c \uae30\ub2a5\uacfc \uac15\ub825\ud55c ORM(Object Relational Mapping) \uc2dc\uc2a4\ud15c\uc744 \ud1b5\ud574 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uac1c\ubc1c\uc744 \ub2e8\uc21c\ud654\ud569\ub2c8\ub2e4. \uc774 \uc911 \ud558\ub098\uac00 \ubc14\ub85c Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc785\ub2c8\ub2e4. \ud3fc \uc2dc\uc2a4\ud15c\uc740 \uc0ac\uc6a9\uc790\ub85c\ubd80\ud130 \ub370\uc774\ud130\ub97c \uc218\uc9d1\ud558\uace0 \uac80\uc99d\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc744 \uc774\ud574\ud558\uace0, \uc774\ub97c \ud65c\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\uc640 \ud568\uaed8 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Django \ud3fc \uc2dc\uc2a4\ud15c\uc758 \uac1c\uc694 Django\uc758 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38680\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\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-38680","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, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\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\/38680\/\" \/>\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, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc18c\uac1c Django\ub294 \uac15\ub825\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ub2e4\uc591\ud55c \uae30\ub2a5\uacfc \uac15\ub825\ud55c ORM(Object Relational Mapping) \uc2dc\uc2a4\ud15c\uc744 \ud1b5\ud574 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uac1c\ubc1c\uc744 \ub2e8\uc21c\ud654\ud569\ub2c8\ub2e4. \uc774 \uc911 \ud558\ub098\uac00 \ubc14\ub85c Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc785\ub2c8\ub2e4. \ud3fc \uc2dc\uc2a4\ud15c\uc740 \uc0ac\uc6a9\uc790\ub85c\ubd80\ud130 \ub370\uc774\ud130\ub97c \uc218\uc9d1\ud558\uace0 \uac80\uc99d\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc744 \uc774\ud574\ud558\uace0, \uc774\ub97c \ud65c\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\uc640 \ud568\uaed8 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Django \ud3fc \uc2dc\uc2a4\ud15c\uc758 \uac1c\uc694 Django\uc758 &hellip; \ub354 \ubcf4\uae30 &quot;DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38680\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T19:08:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:43:38+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=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38680\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38680\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30\",\"datePublished\":\"2024-11-01T19:08:48+00:00\",\"dateModified\":\"2024-11-26T06:43:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38680\/\"},\"wordCount\":68,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"DJango\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38680\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38680\/\",\"name\":\"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T19:08:48+00:00\",\"dateModified\":\"2024-11-26T06:43:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38680\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38680\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38680\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\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, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\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\/38680\/","og_locale":"ko_KR","og_type":"article","og_title":"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc18c\uac1c Django\ub294 \uac15\ub825\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ub2e4\uc591\ud55c \uae30\ub2a5\uacfc \uac15\ub825\ud55c ORM(Object Relational Mapping) \uc2dc\uc2a4\ud15c\uc744 \ud1b5\ud574 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uac1c\ubc1c\uc744 \ub2e8\uc21c\ud654\ud569\ub2c8\ub2e4. \uc774 \uc911 \ud558\ub098\uac00 \ubc14\ub85c Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc785\ub2c8\ub2e4. \ud3fc \uc2dc\uc2a4\ud15c\uc740 \uc0ac\uc6a9\uc790\ub85c\ubd80\ud130 \ub370\uc774\ud130\ub97c \uc218\uc9d1\ud558\uace0 \uac80\uc99d\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c\uc744 \uc774\ud574\ud558\uace0, \uc774\ub97c \ud65c\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\uc640 \ud568\uaed8 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Django \ud3fc \uc2dc\uc2a4\ud15c\uc758 \uac1c\uc694 Django\uc758 &hellip; \ub354 \ubcf4\uae30 \"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/38680\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T19:08:48+00:00","article_modified_time":"2024-11-26T06:43:38+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":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38680\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38680\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30","datePublished":"2024-11-01T19:08:48+00:00","dateModified":"2024-11-26T06:43:38+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38680\/"},"wordCount":68,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["DJango\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38680\/","url":"https:\/\/atmokpo.com\/w\/38680\/","name":"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T19:08:48+00:00","dateModified":"2024-11-26T06:43:38+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38680\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38680\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38680\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ud3fc \uc2dc\uc2a4\ud15c \uc774\ud574\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\/38680","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=38680"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38680\/revisions"}],"predecessor-version":[{"id":38681,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38680\/revisions\/38681"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}