<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Django를 이용한 웹애플리케이션 작성 by Jong Hyeok Bae</title>
      <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng</link>
      <description>이 공간은 강의 관련 추가/변경 내용 및 질의 응답을 위한 공간입니다.</description>
      <language>en-us</language>
      <pubDate>2022-12-15 00:23:41 UTC</pubDate>
      <lastBuildDate>2025-12-10 09:45:38 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f4fd.png</url>
      </image>
      <item>
         <title>Java와 C#은 컴파일러 언어인가?</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427742686</link>
         <description><![CDATA[<div>Java와 C#같은 언어가 컴파일러 언어인지 아니면 인터프리터 언어인지 혼란스러운 경험을 해보신 분이 있을 겁니다. 잠시 한 번 살펴보도록 하겠습니다.<br><br>Java는 source code(~.java) 작성 후 compiler를 이용하여 컴파일하면 byte code(~.class)가 생성됩니다. 이렇게 생성된 byte code는 JVM(Java Virtual Machine)이 byte code를 라인단위로 읽어들이면서 실행하게 됩니다.<br><br>C#은 source code(~.cs) 작성 후 compiler를 이용하여 컴파일하면 .NET assembly(~.exe 또는 ~.dll)이 생성됩니다. 이렇게 생성된 .NET assembly를 CIL(Common Intermediate Language)라 합니다. 생성된 exe 파일을 실행하면 .NET framework의 가상머신인 CLR(Common Language Runtime)에 의해 실행됩니다.<br><br>여기서 컴파일러 언어와 인터프리터 언어의 주요 특징을 살펴볼 필요가 있습니다.<br>컴파일러 언어는 인간이 해석할 수 있는 단어로 이루어진 source code를 기계가 바로 실행할 수 있는 기계어로 번역합니다.&nbsp; 일단, 번역이 이루어진 이후에는 실행 시 추가 번역이 필요 없이 빠른 속도로 실행이 가능합니다. 그렇게 하기 위해서 컴파일 시점에 모든 변수의 타입을 결정하고 메모리를 확보하는 과정이 들어갑니다. 이를 데이터의 compile-time binding이라 합니다.<br><br>반면에 인터프리터 언어는 사용자가 source code를 입력하자 마자 바로 인터프리터가 해석하여 실행합니다. 이렇게 기계와 인간이 interactive하게 대화하는 형식으로 사용합니다. 이러다 보니, 동일한 코드를 다시 실행하려고 하면 다시 인터프리터가 해석을 해야 하고, 이는 컴파일러 언어에 비해 처리 속도가 매우 느린 원인이 됩니다. 그리고 데이터의 binding은 실행 시 이루어집니다. 즉, 데이터의 runtime binding이 일어납니다.<br><br>이쯤에서 여기서 우리가 주목할 부분은 다음과 같습니다.<br>&nbsp;첫째, JVM, CLR이 해석하는 코드가 과연 source code인가?<br>JVM이 사용하는 byte code와 CLR이 사용하는 .NET assembly는 기계어와 1:1 매칭이 되는 가상의 기계어 형태입니다. 그렇기 때문에 속도면에서 많은 손해를 보지 않고 빠른 속도를 낼 수 있습니다. 애초에 JVM의 목적이 다중 플랫폼에서 동일한 코드를 실행하기 위해 탄생한 거고, CLR역시 .NET 플랫폼만 있으면 실행 가능하게 하며 다른 언어의 .NET assembly와의 상호 연동을 위해 탄생했기 때문이죠<br><br>둘째, JVM과 CLR이 사용자와 기계간의 interactive한 대화를 가능하게 하는가?<br>사전에 컴파일해야 하기 때문에 그럴 수 없습니다.<br><br>셋째, Java와 C#의 데이터는 언제 binding 되는가?<br>둘 다 compile-time binding 입니다.<br><br>결론적으로, 엄밀히 말하자면 변형된 컴파일러 언어 또는 일종의 하이브리드 언어라는 새로운 카테고리로 분류할 수 도 있지만, 컴파일러 또는 인터프리터 언어의 두 가지 관점에서 분류하자면 컴파일러 언어라고 보는 것이 더 타당합니다.</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 01:07:39 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427742686</guid>
      </item>
      <item>
         <title>settings.py</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427775701</link>
         <description><![CDATA[<div>변경 또는 추가된 소스<br><br>DATABASES = {<br>	'default': {<br>		'ENGINE': 'django.db.backends.mysql',<br>		'NAME': 'web_db',<br>		'USER': 'django',<br>		'PASSWORD': '1234',<br>		'HOST': '127.0.0.1',<br>		'PORT': '3306',<br>	}<br>}<br>import pymysql<br><br>pymysql.version_info=(1, 4, 2, "final", 0)<br>pymysql.install_as_MySQLdb()<br><br>TIME_ZONE = 'Asia/Seoul'<br>USE_TZ = False</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 02:07:07 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427775701</guid>
      </item>
      <item>
         <title>models.py</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427776075</link>
         <description><![CDATA[<div>from django.db import models<br>from django.utils.timezone import now<br><br><br>class Bulletin(models.Model):<br>&nbsp; &nbsp; title = models.CharField(max_length=100)<br>&nbsp; &nbsp; content = models.CharField(max_length=2000)<br>&nbsp; &nbsp; writeDate = models.DateTimeField(default=now, editable=False)<br>&nbsp; &nbsp; name = models.CharField(max_length=50)<br>&nbsp; &nbsp; passwd = models.CharField(max_length=50)<br><br>&nbsp; &nbsp; def __str__(self):<br>&nbsp; &nbsp; &nbsp; &nbsp; return self.title</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 02:07:50 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427776075</guid>
      </item>
      <item>
         <title>admin.py</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427783458</link>
         <description><![CDATA[<div>from django.contrib import admin<br>from bulletin_board.models import Bulletin<br><br><br>admin.site.register(Bulletin)</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 02:22:22 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427783458</guid>
      </item>
      <item>
         <title>board/urls.py</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427783932</link>
         <description><![CDATA[<div>from django.contrib import admin<br>from django.urls import path, include<br><br>urlpatterns = [<br>&nbsp; &nbsp; path('admin/', admin.site.urls),<br>&nbsp; &nbsp; path('bulletin/', include('bulletin_board.urls')),<br>]</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 02:23:27 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427783932</guid>
      </item>
      <item>
         <title>bulletin_board/urls.py</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427784461</link>
         <description><![CDATA[<div>from django.urls import path<br>from . import views<br><br>app_name = 'noticeboard'<br>urlpatterns = [<br>&nbsp; &nbsp; path('', views.index, name='index'),<br>&nbsp; &nbsp; path('write/', views.create_bulletin, name='new_bulletin'),<br>&nbsp; &nbsp; path('add/', views.add_bulletin, name='insert_bulletin'),<br>&nbsp; &nbsp; path('&lt;int:bulletin_id&gt;/', views.view_bulletin, name='view'),<br>&nbsp; &nbsp; path('update/&lt;int:bulletin_id&gt;/', views.update_bulletin, name='update'),<br>&nbsp; &nbsp; path('delete/&lt;int:bulletin_id&gt;/', views.delete_bulletin, name='delete'),<br>]</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 02:24:35 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427784461</guid>
      </item>
      <item>
         <title>views.py</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427784698</link>
         <description><![CDATA[<div>from django.shortcuts import render, get_object_or_404<br>from .models import Bulletin<br>from django.http import HttpResponseRedirect<br>from django.urls import reverse<br>from django.utils import timezone<br><br><br>def index(request):<br>&nbsp; &nbsp; bulletin_list = Bulletin.objects.all().order_by('-writeDate')<br>&nbsp; &nbsp; context = {'bulletin_list' : bulletin_list}<br>&nbsp; &nbsp; return render(request, 'bulletin/index.html', context)<br><br><br>def create_bulletin(request):<br>&nbsp; &nbsp; return render(request, 'bulletin/create_bulletin.html')<br><br><br>def add_bulletin(request):<br>&nbsp; &nbsp; bulletin = Bulletin()<br>&nbsp; &nbsp; bulletin.title = request.POST['title']<br>&nbsp; &nbsp; bulletin.content = request.POST['content']<br>&nbsp; &nbsp; bulletin.name = request.POST['name']<br>&nbsp; &nbsp; bulletin.passwd = request.POST['pincode']<br>&nbsp; &nbsp; bulletin.save()<br><br>&nbsp; &nbsp; return HttpResponseRedirect(reverse('bulletin_board:index'))<br><br><br>def view_bulletin(request, bulletin_id):<br>&nbsp; &nbsp; bulletin = get_object_or_404(Bulletin, pk=bulletin_id)<br>&nbsp; &nbsp; return render(request, 'bulletin/detail.html', {'bulletin': bulletin})<br><br><br>def update_bulletin(request, bulletin_id):<br>&nbsp; &nbsp; bulletin = Bulletin.objects.get(id=bulletin_id)<br><br>&nbsp; &nbsp; if request.method == 'POST':<br>&nbsp; &nbsp; &nbsp; &nbsp; bulletin.title = request.POST['title']<br>&nbsp; &nbsp; &nbsp; &nbsp; bulletin.content = request.POST['content']<br>&nbsp; &nbsp; &nbsp; &nbsp; bulletin.writeDate = timezone.datetime.now()<br>&nbsp; &nbsp; &nbsp; &nbsp; bulletin.save()<br>&nbsp; &nbsp; &nbsp; &nbsp; return HttpResponseRedirect(reverse('bulletin_board:view', args=(bulletin_id,)))<br>&nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp; return render(request, 'bulletin_board/detail.html', {'bulletin': bulletin})<br><br><br>def delete_bulletin(request, bulletin_id):<br>&nbsp; &nbsp; bulletin = Bulletin.objects.get(id=bulletin_id)<br>&nbsp; &nbsp; bulletin.delete()<br>&nbsp; &nbsp; return HttpResponseRedirect(reverse('bulletin_board:index'))<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 02:25:05 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427784698</guid>
      </item>
      <item>
         <title>index.html</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427785836</link>
         <description><![CDATA[<div>&lt;!DOCTYPE html&gt;<br>&lt;html lang="en"&gt;<br>&lt;head&gt;<br>&nbsp; &nbsp; &lt;meta charset="UTF-8"&gt;<br>&nbsp; &nbsp; &lt;title&gt;글목록&lt;/title&gt;<br>&nbsp; &nbsp; &lt;style&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; .rm_underline {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text-decoration: none;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; .new_bulletin {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text-align: center;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; font-size: 30px;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display: block;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&nbsp; &nbsp; &lt;table align="center" border="1" style="width:80%"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;thead&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr align="center" bgcolor="yellow"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;글번호&lt;/th&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;작성자&lt;/th&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;제목&lt;/th&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;작성일&lt;/th&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/thead&gt;<br>&nbsp; &nbsp; {% if bulletin_list %}<br>&nbsp; &nbsp; &lt;tbody&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; {% for bulletin in bulletin_list %}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr align="center"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td style="width:30px"&gt;{{bulletin.id}}&lt;/td&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td style="width:50px"&gt;{{bulletin.name}}&lt;/td&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align='left' style="width:200px"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span style="padding-right: 30px"&gt;&lt;/span&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a class='rm_underline' href="{% url 'bulletin_board:view' bulletin.id %}"&gt;{{bulletin.title}}&lt;/a&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td width="10%"&gt;{{bulletin.writeDate}}&lt;/td&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; {% endfor %}<br>&nbsp; &nbsp; &lt;/tbody&gt;<br>&nbsp; &nbsp; {% else %}<br>&nbsp; &nbsp; &lt;tbody&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan="4"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p align="center"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;&lt;span style="font-size: 15pt;"&gt;등록된 글이 없습니다.&lt;/span&gt;&lt;/b&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br>&nbsp; &nbsp; &lt;/tbody&gt;<br>&nbsp; &nbsp; {% endif %}<br>&nbsp; &nbsp; &lt;/table&gt;<br>&nbsp; &nbsp; &lt;a class="rm_underline" href="{% url 'bulletin_board:new_bulletin' %}"&gt;<br>	&lt;span class="new_bulletin"&gt;글쓰기&lt;/span&gt;<br>&nbsp; &nbsp; &lt;/a&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 02:27:35 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427785836</guid>
      </item>
      <item>
         <title>공지</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427794601</link>
         <description><![CDATA[<div>수업&nbsp;중 궁금한 사항이나, 오류 관련 질문을 생성해 주시면 답변 드리겠습니다.  패들렛 화면 오른쪽 하단의 "+" 아이콘을 눌러서 작성해 주세요.</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-12-23 02:47:35 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/2427794601</guid>
      </item>
      <item>
         <title>미니콘다 다운로드 화면 개편</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/3048261879</link>
         <description><![CDATA[<p>미니콘다 싸이트 개편으로 다운로드 화면이 변경되었습니다.</p><p>윈도우즈를 사용하시는 고객은 위에 표시된 항목을 선택하시면 됩니다. 미니콘다 버전은 실습과 상관이 없습니다. 미니콘다에서 가상환경을 만들 때, 필요한 파이썬 버전을 설치하시면 됩니다.</p><p>실습 내용에서는 파이썬 "3.8"을 사용하였으나 지금은 "3.9" 이상을 사용하시는 걸 권장합니다.</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1916259021/81b6b08db1e4f2f1baca9aaa28be059b/miniconda.png" />
         <pubDate>2024-07-09 00:48:34 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/3048261879</guid>
      </item>
      <item>
         <title>주피터 노트북 버전업</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/3048264349</link>
         <description><![CDATA[<p>주피터 노트북 버전이 새롭게 바뀌어, 새 노트북을 생성하는 메뉴가 변경되었습니다.</p><p>화면에 나오는 것 처럼, [notebook]을 선택하시면 됩니다.</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1916259021/30c754f307848f07fcfea386f7d9d100/jupyter_notebook.png" />
         <pubDate>2024-07-09 00:50:33 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/3048264349</guid>
      </item>
      <item>
         <title>create_bulletin.html</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/3322035699</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1916259021/939ef2e94a42fa92363c03612b19a688/create_bulletin.html" />
         <pubDate>2025-02-10 06:00:22 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/3322035699</guid>
      </item>
      <item>
         <title>detail.html</title>
         <author>jonghyeokbae</author>
         <link>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/3323328052</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1916259021/36a12a2ef619165500f8a60b05010cb0/detail.html" />
         <pubDate>2025-02-11 00:04:06 UTC</pubDate>
         <guid>https://padlet.com/jonghyeokbae/ozqwcinaa27fgrng/wish/3323328052</guid>
      </item>
   </channel>
</rss>
