部署我的web應用程序後,django開始向我發送損壞鏈接的郵件。自昨天起我一直在努力解決問題,但沒有成功。部署後的Django Broken Link
我得到的郵件是;
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="[email protected]" />
<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>
UPDATE:這是意見
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')
我怎樣才能擺脫這個問題的?
你想擺脫您的網站上的電子郵件或404? – alexvassel
您能發佈/ listing /的查看代碼嗎? – jpic
這就是 – picomon