Tuesday, June 25, 2013

hi [django-users] How to do something after "return HttpResponse(html)"?

hi all:
      I want to do someing after "return HttpResponse(html)".
for example
""""""""""""""
from django.http import HttpResponse
import datetime
def current_datetime(request):
          now = datetime.datetime.now()
          html = "<html><body>It is now %s.</body></html>" % now
          return HttpResponse(html)
"""""""""""""""""""""""""""""

Actually, I have a question that I need first give a response to the client, second I do something else.
How to solve this?

Thank you

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate