相似url: http://127.0.0.1:8001/customer_edit/2?next=/customer_list/前端
前端獲取方法:location.href========http://127.0.0.1:8001/customer_edit/2?next=/customer_list/app
前端獲取方法:location.search====?next=/customer_list/url
那麼如何獲取next後面的路徑:location.search.slice(6)spa
setting.py定義的如靜態文件目錄。Django先是從全局中查找,若是找不到。而後再從各個應用中查找,安裝setting.py定義的中間件的順序code
from school.models import Student print(Student._meta.model_name) #student 類名 print(Student._meta.app_label) #school 應用名字