Django_1.실습
pybo 생성Python Board의 약자이며, Q&A 형식의 게시판을 의미(mysite) c:\Users\COM\projects\mysite>django-admin startapp pybourls.pyfrom django.contrib import adminfrom django.urls import pathfrom pybo import viewsurlpatterns = [ path('admin/', admin.site.urls), path('pybo/', views.index),] views.pyfrom django.http import HttpResponsedef index(request): return HttpResponse("안녕하세요 pybo에 오신것을 환영합니다.")
Django
2024. 11. 13. 17:51