An exception is an unusual event that causes a program to fail. Django has its exception classes to cope with this circumstance, and it also supports all fundamental Python exceptions. The Django. core. exceptions module defines the Django core exceptions classes.