~~~
from django.shortcuts import HttpResponse, render, redirect
HttpResponse('字符串') # 直接將字符串返回給請求
render(request, html, dict) # 將html模板渲染后返回給請求
redirect(url) # 直接重定向到新的URL,如果是本地URL可以不加ip或者域名
~~~
>[info] 給Ajax返回值時使用HttpResponse,返回值為字符串,非字符串使用json.dumps()轉化為字符串
request.path_info 獲取URL