title: Django 1.7 on App Engine "ImportError: No module named msvcrt"
body: <p>I'm trying to upgrade Django to version 1.7 on a Google App Engine development server running on my Windows machine.</p>
  
  <p>When trying to load the app, I get the following exception from <code>doango\core\files\locks.py</code>:</p>
  
  <pre><code>ImportError: No module named msvcrt
  </code></pre>
  
  <p>The relevant code lines are:</p>
  
  <pre><code>if os.name == 'nt':
      import msvcrt
  </code></pre>
  
  <p>I guess the exception is raised because App Engine's dev server doesn't supply a version of msvcrt, but because my dev machine is Windows, os.name is still <code>'nt'</code>.</p>
  
  <p>Is there a solution or a workaround for this?</p>
  
  <p>Relevant stacktrace:</p>
  
  <pre><code> File "...\django\core\files\locks.py", line 30, in &lt;module&gt;
      import msvcrt
   File "D:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\python\sandbox.py", line 852, in load_module
      raise ImportError('No module named %s' % fullname)
  </code></pre>