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.