import json
-import loggin
from django.utils.translation import ugettext as _
from django.http import HttpResponse, HttpResponseRedirect
'success': False,
'error_message': _("Sorry, but akismet thinks your %s is spam.") % comment_type
}
- return HttpResponse(json.dumps(response), mimetype="application/json")
+ return HttpResponse(json.dumps(response), content_type="application/json")
else:
captcha_checked = False
try: