in my settings.py settings, I have
from django.conf.global_settings import DATETIME_INPUT_FORMATS
DATETIME_INPUT_FORMATS += ('%Y-%m-%d %I:%M %p',)
But when I enter the date 2015-10-23 01:48 pm
in my form that takes date time I get Enter a valid date/time.
.
The model is date_completed = models.DateTimeField(null=True, blank=True)
.
How can make the model take the format 2015-10-23 01:48 pm
?
base.py
? Did you mean to saysettings.py
?