Note that there are some explanatory texts on larger screens.

plurals
  1. POrun demo django app on google app engine (DJANGO_SETTINGS_MODULE is undefined.)
    primarykey
    data
    text
    <p>I am trying to run the django 1.3 test app named Polls in googleappenginelauncher version 1.6.6 and am getting the following error. Can anyone tell me how to do this, please?</p> <pre><code>ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. INFO 2012-06-05 19:08:30,766 dev_appserver.py:2904] "GET /polls/1/ HTTP/1.1" 500 - </code></pre> <p>I have placed my app.yaml in the app directory, not the project directory, and that may be a problem, but here is my current app.yaml. Also, I have declared my views.py as my main script, which was also a guess. </p> <pre><code>application: ctst version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /_ah/queue/deferred script: djangoappengine.deferred.handler.application login: admin - url: /.* script: views.app libraries: - name: django version: "1.3" </code></pre> <p>My mysite and my polls directories are as follows.</p> <pre><code>server:mysite brian$ ls -l total 352 -rw-r--r-- 1 brian staff 0 Jun 4 10:22 __init__.py -rw-r--r-- 1 brian staff 155 Jun 4 13:56 __init__.pyc -rw-r--r-- 1 brian staff 503 Jun 4 10:22 manage.py drwxr-xr-x 20 brian staff 680 Jun 5 14:54 polls -rw-r--r-- 1 brian staff 5273 Jun 5 15:00 settings.py -rw-r--r-- 1 brian staff 2955 Jun 5 15:00 settings.pyc drwxr-xr-x 2 brian staff 68 Jun 4 14:04 sqlite3.db -rw-r--r-- 1 brian staff 147456 Jun 5 11:42 sqlite3.dp -rw-r--r-- 1 brian staff 1048 Jun 5 10:16 urls.py -rw-r--r-- 1 brian staff 464 Jun 5 10:18 urls.pyc server:mysite brian$ ls -l polls/ total 104 -rw-r--r-- 1 brian staff 0 Jun 4 14:23 __init__.py -rw-r--r-- 1 brian staff 151 Jun 4 14:33 __init__.pyc -rw-r--r-- 1 brian staff 505 Jun 4 16:33 admin.py -rw-r--r-- 1 brian staff 1123 Jun 4 16:33 admin.pyc -rw-r--r-- 1 brian staff 263 Jun 5 14:54 app.yaml -rw-r--r-- 1 brian staff 524 Jun 4 14:50 models.py -rw-r--r-- 1 brian staff 1484 Jun 4 14:50 models.pyc -rw-r--r-- 1 brian staff 383 Jun 4 14:23 tests.py -rw-r--r-- 1 brian staff 708 Jun 5 11:26 urls.py -rw-r--r-- 1 brian staff 902 Jun 5 11:42 urls.pyc -rw-r--r-- 1 brian staff 1154 Jun 5 11:41 views.py -rw-r--r-- 1 brian staff 1231 Jun 5 11:42 views.pyc server:mysite brian$ </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload