title: How does manage.py work?
body: <p>I just installed django and I'm doing the tutorial on their website.</p>
  
  <p>I'm following their instructions on command line and they're working, but I'm wondering why?</p>
  
  <p>For instance, you can access the command 'manage.py startapp xyz' and it would create a package, but when I look into manage.py, it only contains the following code (added by django, I didn't touch manage.py)</p>
  
  <pre><code>#!/usr/bin/env python
  import os
  import sys
  
  if __name__ == "__main__":
      os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoProject12.settings")
  
      from django.core.management import execute_from_command_line
  
      execute_from_command_line(sys.argv)
  </code></pre>
  
  <p>I don't see any method for startapp in manage.py or anywhere else. I'm not sure if this is django specific or if there is some fundamental gap in my python knowledge. Thank you.</p>