Django doesn't support a datepicker for its forms, i didn't find any solution that works for me.
If anyone knows some simple solution for this, i'd be very thankful.
Thanks.
forms.py
class meta:
model = Student
fields = ["classfk","name","birth_date"]
views.py
class CreateNewStudent(CreateView):
fields = ("classfk","name", "birth_date")
model = Student
success_url = '/class/'
template_name = "temp/newstudent.html"
newstudent.html
<html>
<body>
<head>
</head>
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit"/>
</form>
</body>
</html>