{% extends "base.html" %} {% load i18n crispy_forms_tags %} {% block base_content %} {% crispy form %} {% endblock %} {% block foot_js %} <script type="text/javascript"> $(function () { $('.dateinput').fdatepicker({ // TODO localize format: 'dd/mm/yyyy', language: 'pt', endDate: '31/12/2100', todayBtn: true }); }); </script> {% endblock %}