Date is not rendered in Django-Crispy-Forms <p>I am using crispy-forms with bootstrap datepicker, I can save the form, but in edit page the date is not showing in template.</p> <p>This is the code:</p> <p>In editForm():</p> <pre><code>def init(self, *args, **kwargs): self.helper = FormHelper() Div('date_end', id="date_end", template='project/util/datepicker_end.html'), </code></pre> <p>The datepicker_end.html:</p> <pre><code> &lt;div class="input-append date" id="date_end" data-date="{% now 'd-m-Y' %}" data-date-format="dd-mm-yyyy"&gt; &lt;label for="id_date_end"&gt;Date end:&lt;/label&gt; &lt;input type="text" name="date_end" id="id_date_end" readonly="readonly" class="input-small"&gt;&lt;span id="datepicker-icon" class="add-on"&gt;&lt;i class="icon-calendar"&gt;&lt;/i&gt;&lt;/span&gt; &lt;/div&gt; </code></pre> <p>The output of "print form"(the date is comming in form, but is not rendered in the "div"):</p> <pre><code>&lt;tr&gt;&lt;th&gt;&lt;label for="id_date_end" class="required"&gt;Date end: *&lt;/label&gt;&lt;/th&gt;&lt;td&gt;&lt;input type="text" name="date_end" value="31-05-2012" id="id_date_end" /&gt;&lt;/td&gt;&lt;/tr&gt; </code></pre> <p>This result in a empty field: <a href="http://postimage.org/image/r9wqfyrvf/" rel="nofollow">http://postimage.org/image/r9wqfyrvf/</a></p> <p>Link to project: <a href="https://github.com/maraujop/django-crispy-forms" rel="nofollow">https://github.com/maraujop/django-crispy-forms</a></p> <p>Link to doc: <a href="http://django-crispy-forms.readthedocs.org/en/d-0/index.html" rel="nofollow">http://django-crispy-forms.readthedocs.org/en/d-0/index.html</a></p> <p>EDIT!</p> <p>I found the solution. Instead of using in template the input html tag , used the normal tag django {{form.date_end}}. The same template is used for the registration form.</p> <p>The template datepicker_end.html using the django tag {{form.date_end}} instead a normal html input.</p> <pre><code>&lt;div id="div_id_data_end" class="clearfix control-group"&gt; &lt;div class="input-append date" id="date_end" data-date="{% now 'd-m-Y' %}" data-date-format="dd-mm-yyyy"&gt; &lt;label class="control-label requiredField" for="id_date_end"&gt;Data end* &lt;/label&gt; &lt;div class="controls"&gt; {{form.date_end}}&lt;span id="datepicker-icon" class="add-on"&gt;&lt;i class="icon-calendar"&gt;&lt;/i&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>In forms.py</p> <pre><code>class EditForm(ModelForm): class Meta: model = MyModel self.helper.layout = Layout( Fieldset( [...] Field('date_end', css_class='input-small dateinput', id='date_end', readonly='readonly', template='project/util/datepicker_end.html'), ) </code></pre> <p>Regards!</p>