Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connected to pydev debugger (build 173.3942.36)
- Connected to pydev debugger (build 173.3942.36)
- Waiting for process connection...
- container-name | Could not find thread pid_81_id_140102606217792
- container-name | Available: ['pid_232_id_140052765045312', 'pid_232_id_140052676863480', 'pid_232_id_140052644157928', 'pid_232_id_140052644157200', 'pid_232_id_140052660987328', 'pid_232_id_140052643054984']
- container-name | Could not find thread pid_81_id_140102606217792
- container-name | Available: ['pid_240_id_140052765045312', 'pid_240_id_140052676863480', 'pid_240_id_140052643056888', 'pid_240_id_140052644157200', 'pid_240_id_140052660987328', 'pid_240_id_140052643054984']
- container-name | Could not find thread pid_52_id_140052676829080
- container-name | Available: ['pid_240_id_140052765045312', 'pid_240_id_140052676863480', 'pid_240_id_140052643056888', 'pid_240_id_140052644157200', 'pid_240_id_140052660987328', 'pid_240_id_140052643054984']
- container-name | Could not find thread pid_232_id_140052765045312
- container-name | Available: ['pid_240_id_140052765045312', 'pid_240_id_140052676863480', 'pid_240_id_140052643056888', 'pid_240_id_140052644157200', 'pid_240_id_140052660987328', 'pid_240_id_140052643054984']
- container-name | Could not find thread pid_223_id_140052714764496
- container-name | Available: ['pid_240_id_140052765045312', 'pid_240_id_140052676863480', 'pid_240_id_140052643056888', 'pid_240_id_140052644157200', 'pid_240_id_140052660987328', 'pid_240_id_140052643054984']
- import os
- import sys
- from django.core.wsgi import get_wsgi_application
- from djunk.utils import getenv
- os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'multitenant.settings.settings')
- # If the environment is configured to enable remote debugging, attach to the configured remote debug server.
- # If REMOTE_DEBUG_ENABLED set to True, REMOTE_DEBUG_HOST and REMOTE_DEBUG_PORT are required.
- if getenv('REMOTE_DEBUG_ENABLED', False):
- print('Debugging Enabled')
- # We keep this import inside the REMOTE_DEBUG_ENABLED check because simply doing the import slows down the process,
- # even if we don't call settrace().
- sys.path.insert(0, '/debug/pycharm-debug-py3k.egg')
- import pydevd
- # Attach to a Remote Debugger session running in PyCharm or PyDev on the configured host and port.
- # NOTE: If no remote debug server is running, this call will crash and the exception handler will also crash.
- # Be aware of this!
- pydevd.settrace(
- host=getenv('REMOTE_DEBUG_HOST'),
- port=getenv('REMOTE_DEBUG_PORT'),
- suspend=False
- )
- application = get_wsgi_application()
Add Comment
Please, Sign In to add comment