当前位置 主页 > 服务器问题 > Linux/apache问题 >
登录HTML:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>登录</title> </head> <body> {% if errors %} <li> {% for error in errors %} <p > {{error}} </p> {% endfor %} </li> {% endif %} <table> <form action="" method="post">{% csrf_token %} <tr> <td> <label >用户名:</label> </td> <td> <input type = 'text' placeholder="输入用户名" name = 'account'> </td> </tr> <tr> <td> <label >密码:</label> </td> <td> <input type = 'password' placeholder="输入密码" name = 'password'> </td> </tr> <tr> <td> <input type = 'submit' placeholder="Login" value="登录"> </td> </tr> </form> </table> </body> </html> </body> </html>
希望本文所述对大家基于Django框架的Python程序设计有所帮助。