Python - How to import 'NON_FIELD_ERRORS' -- django
Import NON_FIELD_ERRORS
To import NON_FIELD_ERRORS, Add the following line to the top of your code.
from django.core.validators import NON_FIELD_ERRORS
For more information about NON_FIELD_ERRORS:
django NON_FIELD_ERRORS