Templates In Django – Free Django Tutorials
What is a Template? A template is an HTML file that contains the design for our website. Why templates? Consider this function which can be written in a views.py file def current_datetime(request): now = datetime.datetime.now() html = “<html><body>It is now %s.</body></html>” % now return HttpResponse(html) Although this technique is useful for the purpose of explaining …