title: How does django register management commands
body: <p>I'm having a weird issue with something in a deployed django app (long <a href="https://stackoverflow.com/questions/14317950/custom-django-management-command-not-working-when-deployed-as-egg">story</a>).
  Something that might help me is to know:</p>
  
  <p><strong>How django goes about detecting and maintaining a list of active management commands?</strong></p>