0

我想验证 django 表单。请给我一个想法,我如何在 django 中验证表单 ajax。形式为:

<form method="POST" action="#" class="form-horizontal" name="jform">{% csrf_token %}
    <fieldset>
        <div class="control-group formSep">
            <label for="u_fname" class="control-label">Name</label>
            <div class="controls">
                <input type="text" class="input-xlarge" name="aname" value=""/>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <button class="btn btn-gebo" type="submit" name="asubmit">Submit</button>

            </div>
4

0 回答 0