django 使用post与android客户端连接 出现500 错误


使用django为安卓客户端提供后端支持。
安卓客户端收到 500 错误,服务器判断了如果使用 post 方法,先返回一个 字符串,代码如下:


 def first_page(request):
     if request.method == 'POST':
         return HttpResponse('你是post方法');

python Android django

小黑屋调教 9 years, 2 months ago

问题没有描述清楚,500错误是指你服务端的代码有问题,你应该把错误代码贴出来的

自豪的小吴克 answered 9 years, 2 months ago

Your Answer