You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>form_demo</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<form action="" method="POST" novalidate>
|
|
|
|
{% csrf_token %}
|
|
|
|
<p>{{ form_obj.username.label }}:{{ form_obj.username }}
|
|
|
|
{{ errors.username.0 }}</p>
|
|
|
|
<p>{{ form_obj.password.label }}:{{ form_obj.password }}
|
|
|
|
{{ errors.username.0 }}</p>
|
|
|
|
<p>{{ form_obj.status.label }}:{{ form_obj.status }}
|
|
|
|
{{ errors.status.0 }}</p>
|
|
|
|
<p>{{ form_obj.age.label }}:{{ form_obj.age }}
|
|
|
|
{{ errors.age.0 }}</p>
|
|
|
|
<p>{{ form_obj.mobile.label }}:{{ form_obj.mobile }}
|
|
|
|
{{ errors.mobile.0 }}</p>
|
|
|
|
{{ errors }}
|
|
|
|
<input type="submit" value="提交">
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|