Python Errors and Solutions

The Python Errors section of the website attempts to provide solutions for common and frustrating python errors encountered during development.

Python Standard Library Built-In Exceptions

Class hierarchy of built-in exceptions BaseException +-- SystemExit +-- KeyboardInterrupt +-- GeneratorExit +-- Exception +-- StopIteration +-- StopAsyncIteration +-- ArithmeticError | +-- FloatingPointError | +-- OverflowError | +-- ZeroDivisionError +-- AssertionError +-- AttributeError +-- BufferError +-- EOFError +-- ImportError | +-- ModuleNotFoundError +-- LookupError | +-- IndexError | +-- KeyError +-- MemoryError +-- NameError | +-- UnboundLocalError +-- OSError | +-- BlockingIOError | +-- ChildProcessError | +-- ConnectionError | | +-- BrokenPipeError | | +-- ConnectionAbortedError | | +-- ConnectionRefusedError | | +-- ConnectionResetError | +-- FileExistsError | +-- FileNotFoundError | +-- InterruptedError | +-- IsADirectoryError | +-- NotADirectoryError | +-- PermissionError | +-- ProcessLookupError | +-- TimeoutError +-- ReferenceError +-- RuntimeError | +-- NotImplementedError | +-- RecursionError +-- SyntaxError | +-- IndentationError | +-- TabError +-- SystemError +-- TypeError +-- ValueError | +-- UnicodeError | +-- UnicodeDecodeError | +-- UnicodeEncodeError | +-- UnicodeTranslateError +-- Warning +-- DeprecationWarning +-- PendingDeprecationWarning +-- RuntimeWarning +-- SyntaxWarning +-- UserWarning +-- FutureWarning +-- ImportWarning +-- UnicodeWarning +-- BytesWarning +-- ResourceWarning Reference Python Documenation: Built-in Exceptions

django.core.exceptions

This page cotains a list of possible Exception raised by the Django Web Framework. FieldDoesNotExist Inherits from Exception Description: “The requested model field does not exist” AppRegistryNotReady Inherits from Exception Description: “The django.apps registry is not populated yet” ObjectDoesNotExist Inherits from Exception Description: “The requested object does not exist”, MultipleObjectsReturned Inherits from Exception Description: “The query returned multiple objects when only one was expected.” SuspiciousOperation Inherits from Exception Description: “The user did something suspicious”