Set the Debug Mode

Report a typo

Consider you have a boolean variable IS_RELEASE_SERVER in your code. If it is True, it means that you are working on a production server, and if False, then it's a development server.

Define the DEBUG variable so that if it's the production server it takes False, and if it's the development server it takes True.

Write a program in Python 3
DEBUG = ...
___

Create a free account to access the full topic