Python provides the ability to issue warnings as a step below raising exceptions. Deprecation warnings are commonly used to notify that an API will be removed in the future. Django uses a deprecation cycle for removing APIs, which is based on its long-term-support releases. Python's default behavior is to ignore several categories of warnings, including deprecation warnings, but this can be changed by specifying a warning policy.
Share this post