<div> <br> <form method="post" action="." enctype="multipart/form-data"> {% csrf_token %} <div> <label for="username"> 获得好友列表 </label> <input type="text" id="username" name="username"> </div> <button type="submit"> 提交 </button> </form> </div>