def postquestion(request): try: data = QuestionForm(request.POST) print data if data.is_valid() == True: data.save() return HttpResponse("Question posted Successfully") return HttpResponse("Question could not be posted") except Exception, e: logging.exception("")