Django 2.x之後,. 使用較為簡易的語法. path(網址, 函式). 當然舊有的語法. url( 網址,函式). 只要引入. from django.urls import re_path.
確定! 回上一頁