📜  django templateview - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:26.765000             🧑  作者: Mango

代码示例1
from django.urls import path
from django.views.generic import TemplateView

urlpatterns = [
    path('about/', TemplateView.as_view(template_name="about.html")),
]