[TIL] HTTP REQUEST & RESPONSE
Client: Http Request
Server: Http Response
*Http: Hyper Text Transfer Protocol
Django: Model, View, Template
Client -> Http Request -> django
-> URLs -> View -> Http Response -> Client
urlpatterns = [
path('admin/', admin site urls),
path('posts/', views.index)
]
views.index(viewsモジュールのindex関数)はhttp要求
def index(request):
return HttpResponse('Hello HEEHAM~')
ビューモデルによるデータの必要性(CRUD:Create、Read、Update、Delete:基本データ操作)
Html(django template)にデータをインポートし、
Reference
この問題について([TIL] HTTP REQUEST & RESPONSE), 我々は、より多くの情報をここで見つけました https://velog.io/@dolph7102/TIL-HTTP-REQUEST-RESPONSEテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol