My settings file has these settings:
# settings.py
USE_L10N = False
DATE_INPUT_FORMATS = ['%m/%d/%Y']
In my test file, I'm creating an object requires a date and looks like this:
# tests.py
my_model = Thing(a_date='11/22/2019').save()
When I run the test, however, the test gets stuck when it goes to create the object and throws the error:
django.core.exceptions.ValidationError: ["'11/22/2019' value has an invalid date format. It must be in YYYY-MM-DD format."]
Is there something I'm missing? Why would it be throwing this error?