部署我的网络应用程序后,django 开始向我发送断开链接的邮件。从昨天开始,我一直在努力解决问题,但没有成功。
我收到的邮件是;
Referrer: http://tesst.com/listing/
Requested URL: /favicon.ico
User agent: Opera/9.80 (Android; Opera Mini/7.5.31657/28.3030; U; en) Presto/2.8.119 Version/11.10
IP address: 000.00.0.00 #just used this 0 to represent IP address of the user.
在我的模板中:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta charset="utf-8" />
<meta name="robots" content="index, follow" />
<meta name="webmaster" content="test@gmail.com" />
<link href= "{{ MEDIA_URL }}/favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet" href="{{ MEDIA_URL }}/css/style.css"/>
<title> {% block title %} {% endblock %} </title>
</head>
更新:这是意见
def lispy(request):
cripys=Wriby.objects.all()
for crip in cripys:
print crip.id
return render_to_response('partners.html',{'cripys':cripys,'crip':crip},context_instance=RequestContext(request))
else:
return HttpResponse('Invalid')
我怎样才能摆脱这个问题?