Dayeonyeonnan.hashnode.dev·Apr 16, 2024Django templateviewdjango templateview 프로젝트 파일의 urls.py 에서 view를 include로 지정하지 않고,templateview를 사용하여 바로 지정할 수 있다. 해당 페이지로 이동할때만 사용 가능하며,앱폴더 안에 있는 내용들을 사용할 때는 include를 사용한다. from django.urls import path from django.views.generic import TemplateView urlpatterns = [ ...10 likeshomeworkDjangoAdd a thoughtful commentNo comments yetBe the first to start the conversation.