title: VSCode Integrated Terminal not loading Django
body: <p>Anaconda:1.8.3
  VScode:  1.22.2
  Mac:     10.13.4</p>
  <p>Just upgraded to Anaconda 1.8.3 and now cannot access Django packages.</p>
  <p>from the conda python environment prompt I get:</p>
  <pre><code>Last login: Sun Apr 29 19:21:31 on ttys001
  /Users/bill/.anaconda/navigator/a.tool ; exit;
  Bills-iMac:~ bill$ /Users/bill/.anaconda/navigator/a.tool ; exit;
  Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33) 
  [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import django
  &gt;&gt;&gt; django.VERSION
  (2, 0, 2, 'final', 0)
  &gt;&gt;&gt; 
  </code></pre>
  <p>So I know that Django is installed and can be imported from the terminal.  From within the VSCode integrated terminal I get:</p>
  <pre><code>Bills-iMac:Prov bill$ python manage.py makemigrations
  Traceback (most recent call last):
    File &quot;manage.py&quot;, line 8, in &lt;module&gt;
      from django.core.management import execute_from_command_line
  ModuleNotFoundError: No module named 'django'
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File &quot;manage.py&quot;, line 14, in &lt;module&gt;
      ) from exc
  ImportError: 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?
  Bills-iMac:Prov bill$
  </code></pre>
  <p>Within the VSCode Settings my <code>python.pythonPath</code> hasn't changed - it is still:</p>
  <pre><code>{
      &quot;python.pythonPath&quot;: &quot;/anaconda3/envs/py36&quot;
  }
  </code></pre>
  <p>Within the <code>venv</code> the path is:</p>
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; print(sys.path)
  ['', '/anaconda3/envs/py36/lib/python36.zip', '/anaconda3/envs/py36/lib/python3.6', '/anaconda3/envs/py36/lib/python3.6/lib-dynload', '/anaconda3/envs/py36/lib/python3.6/site-packages']
  &gt;&gt;&gt; 
  </code></pre>
  <p>I've updating the settings in VScode to the <code>sys.path</code> above - but that didn't change anything.  I know that the package is installed and I know I can get to in from the prompt, but I can't get VScode to work.  If it is a <code>path</code> issue, I'm not sure how to fix it - I'm guessing it is something more - just not sure what.</p>
  <h1>Update</h1>
  <p>I just realized that if I change the <code>pythonPath</code> in VScode settings that the <code>pylint</code> in VScode throws an error - it can not find the Django packages.  That tells me that somehow the VScode has the right settings to resolve the paths - but is still unable to import the packages when the program is run from the <code>integrated terminal</code>.  I can also run <code>python manage.py</code> for <code>makemigrations</code>, <code>migrate</code> and <code>runserver</code> from the <code>venv</code> terminal (outside of VScode) - now I'm less sure as to what the problem is but it seems to be specific to the VScode <code>integrated terminal</code>.</p>