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

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

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

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

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


解决了不写答案,气死了

【热门文章】
【热门文章】