当我试图使用index.html中设置的用户名和密码登录时,出现了如下错误:
ValueError at /login_action/
The view sign.views.login_action didn't return an HttpResponse object. It returned None instead.
Request Method: POST
Request URL: http://127.0.0.1:8000/login_action/
Django Version: 1.11.1
Exception Typ
这是我的代码:
import pcap ,struct
pack=pcap.pcap()
pack.setfilter('udp')
key=''
for recv_time,recv_data in pack:
recv_len=len(recv_data)
if recv_len == 102 and recv_data[42]== chr(02) and recv_data[101] == chr(03):
print struct.unpack('>I',recv_data[49:53])[0]