FieldDoesNotExist is removed from django.db.models.fields in django3.1.
# When the _meta object was formalized, this exception was moved to
# django.core.exceptions. It is retained here for backwards compatibility
# purposes.
from django.core.exceptions import FieldDoesNotExist
FieldDoesNotExist
is removed fromdjango.db.models.fields
in django3.1.