1. urls相关操作 from django.urls import path, re_path, include from django.urls import reverse // 注意reverse 和另一个reversed区别.前者要明确导入,后者是built-in内置不用导入:两者功能也不一. 2. HttpResponse生成 from django.shortcuts import render, Httpresponse, redirect from django.http i…