HTML template

旅人·2023년 5월 30일
0

Directory

settings.py

view template 경로 설정

views.py

from django.http import HttpResponse
from django.shortcuts import render

def homepage(request):
	# return HttpResponse('homepage')
	return render(request, 'homepage.html')

def about(request):
	# return HttpResponse('about')
	return render(request, 'about.html')

Result


참고 : https://www.youtube.com/watch?v=Iy4niMCsbEE&list=PL4cUxeGkcC9ib4HsrXEYpQnTOTZE1x0uc&index=4

profile
一期一会

0개의 댓글