title: Error "No such file or directory" when running Django ./manage.py
body: <p>In my <code>django</code> project, the command <code>./manage.py [command]</code> results in this error message:</p>
  
  <pre><code>: No such file or directory
  </code></pre>
  
  <p>The command <code>python manage.py [command]</code> works well. I tried with <code>syncdb</code> and <code>runserver</code>.
  I tried <code>chmod a+x manage.py</code>, but the problem persists.</p>
  
  <p>My manage.py:</p>
  
  <pre><code>#!/usr/bin/env python
  import os
  import sys
  
  if __name__ == "__main__":
      os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")
  
      from django.core.management import execute_from_command_line
  
      execute_from_command_line(sys.argv)
  </code></pre>
  
  <p>I use django 1.4.1 in a <code>virtualenv</code>.
  How can I fix this to use <code>manage.py [command]</code>?</p>