title: RunPythonCommand failed unexpectedly when running in Visual Studio
body: <p>I'm starting to wet my feet with Python using Visual Studio. I installed the Python Tools for Visual Studio, I clicked New Project...selected the DJango WebProject template, and it generated some files. At this point, normally, in Visual Studio you should be able to launch the app to give you a simple example. But instead I quickly get a compile error saying:</p>
  
  <blockquote>
    <p>Error 1   The "RunPythonCommand" task failed unexpectedly.
    System.ComponentModel.Win32Exception (0x80004005): The parameter is incorrect
       at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
       at Microsoft.PythonTools.BuildTasks.RunPythonCommand.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Python Tools\Microsoft.PythonTools.Django.targets   64  6   DjangoWebProject1</p>
  </blockquote>
  
  <p>Can someone tell me what is wrong? Here is what the Microsoft.PythonTools.DJango.targets file has:</p>
  
  <pre><code>  &lt;Target Name="ResolveStaticUrlSetting" DependsOnTargets="ResolvePythonInterpreterPath"&gt;
  &lt;RunPythonCommand Target="import $(DjangoSettingsModule) as settings; print(settings.STATIC_URL)"
                    TargetType="code"
                    ExecuteIn="none"
                    WorkingDirectory="$(QualifiedProjectHome)"
                    ConsoleToMSBuild="true"&gt;
    &lt;Output TaskParameter="ConsoleOutput" PropertyName="DjangoStaticUrlSetting" /&gt;
  &lt;/RunPythonCommand&gt;
  
  &lt;Message Text="DjangoStaticUrlSetting=$(DjangoStaticUrlSetting)"/&gt;
  </code></pre>
  
  <p></p>