Django - How to set up initial value for a datetime field in a form?
I'm playing around with django so I'm far from being an expert. I'm just learning, so keep the explanations simple if possible.
I'm creating a form (extending from forms.Form) and I have a couple of datetime fields in it:
Given that I'm working with models, I switched the form to extend from ModelForm and now the initial value for DateTime fields is set correctly.... the question of how to do it, say, by hand remains open. I'll be revisiting it later.
|All times are GMT -5. The time now is 03:25 AM.|