I have a class in a different module and I want to show a DeprecationWarning when that class is imported. What will be the right way to do so?
DeprecationWarning
module 1
Add this code to your index page:
code
index
error_reporting(1); ini_set('display_startup_errors', 0);