[Answered ]-Django loaddata DeserializationError: [u"'127' value must be either None, True or False."]

2👍

This error means that the Django is trying to import value 127 into a BooleanField and it can’t because 127 is not either a boolean or null value.

Are you sure that the models are identical in both production and development? Is it possible that in production, some field in one of your models was an integer, however later in development you changed that to a boolean. If the models are not identical, then you can’t just import the fixtures dumped in your production to your development environment. In that case, you will have to do a migration. For Django, South is an excellent tool for doing that.

Leave a comment