Click here to Skip to main content
15,441,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to learn about the view component of Django

What I have tried:

Python
from django.http import HttpResponse
import datetime
 
def Current_datetime(request):
     now = datetime.datetime.now()
     html = "It is now %s/body/html % now
     return HttpResponse(html)
Posted
Updated 31-Dec-21 3:08am
v4

Ok thank You providing me this link
 
Share this answer
 
Comments
CHill60 31-Dec-21 9:10am    
If you want to respond to a Solution then use the "Have a Question or Comment?" link next to it. The poster will be notified of your response. They will NOT be notified that someone has posted another (non)solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900