这是我的 HTML
<form class="form-horizontal" action="/" method="POST">
<div class="control-group">
<label class="control-label" for="email">Email</label>
<div class="controls">
<input type="text" id="email" placeholder="Email">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password">Password</label>
<div class="controls">
<input type="password" id="password" placeholder="Password">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn">Sign In</button>
</div>
</div>
</form>
当我提交表单时,在服务器上我尝试打印它,我做
def post(self):
print 'data :', request.form
我明白了
data : ImmutableMultiDict([])
我也试试
def post(self):
print 'data :', request.json
我明白了
data : None
我到底在这里想念什么