ImportError: cannot import name NullCharactersValidator running Django

After the 24/9, I cannot build the app as all the time I encounter that error
(ImportError: cannot import name ‘ProhibitNullCharactersValidator’)

Link to the error


from django.core.validators import (

ImportError: cannot import name 'ProhibitNullCharactersValidator'

The command "python manage.py test" exited with 1.

Done. Your build exited with 1.

If an error happens consistently after <date>, something has changed – if not in your build logic then externally – most probably, a version of some package.

E.g. you are installing django 1.11.21 – while ProhibitNullCharactersValidator is new in 2.0. That name is used by rest_framework – so most probably, you got a new version of it that no longer supports your old Django version.

Imprint