Define DEBUG state dynamically: if running server using manage.py => DEBUG = True else DEBUG = False. Fixed.