Answers for "django templateview"

1

django templateview

from django.urls import path
from django.views.generic import TemplateView

urlpatterns = [
    path('about/', TemplateView.as_view(template_name="about.html")),
]
Posted by: Guest on January-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language