title: Visual Studio Code Is Not Able To Launch Django Project From Debugger
body: <p>I am using Visual Studio Code as my IDE for building web applications using Python's Django web development framework.  I am developing on a 2018 MacBook Pro.  I am able to launch my web applications by launching them in the terminal using:</p>
  
  <pre><code>python3 manage.py runserver
  </code></pre>
  
  <p>However, I want to be able to launch my application through the debugger.  To try and do this, I navigated to the debug section, created the launch.json file, and changed my configuration in the drop down to Python: Django.  Here is are my configurations from the file.</p>
  
  <pre><code>    {
          "name": "Python: Django",
          "type": "python",
          "request": "launch",
          "program": "${workspaceFolder}/manage.py",
          "console": "integratedTerminal",
          "args": [
              "runserver",
              "--noreload",
              "--nothreading"
          ],
          "django": true
      },
  </code></pre>
  
  <p>When I try to run the debugger using the green play arrow, I get the following exception:</p>
  
  <blockquote>
    <p><strong>Exception has occurred: ImportError</strong> 
    Couldn't import Django. Are you
    sure it's installed and available on your PYTHONPATH environment
    variable? Did you forget to activate a virtual environment?   File
    "/Users/justinoconnor/Desktop/Rapid
    Prototyping/Projects/hello_django/manage.py", line 14, in 
        ) from exc</p>
  </blockquote>
  
  <p>Launching the VS Code debugger with this configuration should be the same as running python manage.py runserver --noreload --nothreading, but it is not working.  I'm thinking it is because on the MacBook I have to use the "python3" command rather than "python", but I did not see anything in the documentation that would allow me to specify this in the launch.json configuration file.</p>
  
  <p>Does anyone know how to resolve this so that when I run the debugger it automatically executes/saves my project?  I don't understand why this is not working when I can type python3 manage.py runserver into the terminal and it will execute just fine.</p>