title: GAE: remote_api_shell.py uses wrong Django version
body: <p>I have a Python 2.7 GAE app that uses Django 1.2.  Everything generally works fine.</p>
  
  <p>I'm trying to use <code>remote_api_shell.py</code>, but when I import my <code>models.py</code>, I get this error:</p>
  
  <pre><code>$ PYTHONPATH=.; remote_api_shell.py APP
  App Engine remote_api shell
  Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) 
  [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
  The db, users, urlfetch, and memcache modules are imported.
  s~APP&gt; import models
  Traceback (most recent call last):
    File "&lt;console&gt;", line 1, in &lt;module&gt;
    File "/Users/.../models.py", line 8, in &lt;module&gt;
      from django.core.validators import email_re
    File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_0_96/django/core/validators.py", line 13, in &lt;module&gt;
      from django.utils.translation import gettext, gettext_lazy, ngettext
    File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_0_96/django/utils/translation/__init__.py", line 3, in &lt;module&gt;
      if settings.USE_I18N:
    File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_0_96/django/conf/__init__.py", line 28, in __getattr__
      self._import_settings()
    File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_0_96/django/conf/__init__.py", line 53, in _import_settings
      raise EnvironmentError, "Environment variable %s is undefined." % ENVIRONMENT_VARIABLE
  EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined.
  </code></pre>
  
  <p>I don't know why it is using Django 0.96 here.  Especially since I think Python 2.7 supports only Django 1.2.  Here are the relevant parts of my <code>app.yaml</code>:</p>
  
  <pre><code>application: APP
  version: prod
  runtime: python27
  api_version: 1
  threadsafe: true
  
  [...]
  
  libraries:
  - name: django
    version: "1.2"
  </code></pre>
  
  <p>If I comment out the <code>from django.core.validators import email_re</code> line then the import succeeds.</p>
  
  <p>Any idea if I am doing something wrong or if this is this a GAE bug?</p>