Guest User

Untitled

a guest
Jan 17th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. Connected to pydev debugger (build 173.3942.36)
  2.  
  3. Connected to pydev debugger (build 173.3942.36)
  4. Waiting for process connection...
  5.  
  6. container-name | Could not find thread pid_81_id_140102606217792
  7. 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']
  8. container-name | Could not find thread pid_81_id_140102606217792
  9. 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']
  10. container-name | Could not find thread pid_52_id_140052676829080
  11. 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']
  12. container-name | Could not find thread pid_232_id_140052765045312
  13. 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']
  14. container-name | Could not find thread pid_223_id_140052714764496
  15. 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']
  16.  
  17. import os
  18. import sys
  19. from django.core.wsgi import get_wsgi_application
  20. from djunk.utils import getenv
  21.  
  22. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'multitenant.settings.settings')
  23.  
  24. # If the environment is configured to enable remote debugging, attach to the configured remote debug server.
  25. # If REMOTE_DEBUG_ENABLED set to True, REMOTE_DEBUG_HOST and REMOTE_DEBUG_PORT are required.
  26. if getenv('REMOTE_DEBUG_ENABLED', False):
  27. print('Debugging Enabled')
  28. # We keep this import inside the REMOTE_DEBUG_ENABLED check because simply doing the import slows down the process,
  29. # even if we don't call settrace().
  30.  
  31. sys.path.insert(0, '/debug/pycharm-debug-py3k.egg')
  32. import pydevd
  33. # Attach to a Remote Debugger session running in PyCharm or PyDev on the configured host and port.
  34. # NOTE: If no remote debug server is running, this call will crash and the exception handler will also crash.
  35. # Be aware of this!
  36. pydevd.settrace(
  37. host=getenv('REMOTE_DEBUG_HOST'),
  38. port=getenv('REMOTE_DEBUG_PORT'),
  39. suspend=False
  40. )
  41.  
  42. application = get_wsgi_application()
Add Comment
Please, Sign In to add comment