1from django.shortcuts import render
2from django.http import HttpResponse
3# Create your views here.
4def hola(request):
5 return HttpResponse("Hola Mundo, Esto es Django")
1from django.http import HttpResponse
2import datetime
3
4def current_datetime(request):
5 now = datetime.datetime.now()
6 html = "<html><body>It is now %s.</body></html>" % now
7 return HttpResponse(html)