Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django templateview

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

urlpatterns = [
    path('about/', TemplateView.as_view(template_name="about.html")),
]
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #templateview
ADD COMMENT
Topic
Name
9+5 =