Right now my models.py is in the root directory of "mysite". Here's the output of that directory:
total 160 -rw-r--r--@ 1 carlin admin 3203 Feb 2 22:56 CHANGES -rw-r--r--@ 1 carlin admin 11358 Feb 2 22:56 COPYING -rw-r--r--@ 1 carlin admin 323 Feb 2 22:56 KNOWN_ISSUES -rw-r--r--@ 1 carlin admin 6900 Feb 2 22:56 README -rw-r--r--@ 1 carlin admin 33 Feb 2 22:56 VERSION -rw-r--r--@ 1 carlin admin 0 Feb 2 22:56 __init__.py -rw-r-----@ 1 carlin admin 139 Feb 2 23:00 app.yaml drwxr-xr-x@ 16 carlin admin 544 Feb 2 23:00 appengine_django -rw-r----- 1 carlin admin 471 Feb 2 23:00 index.yaml -rwxr-x---@ 1 carlin admin 1386 Feb 2 22:56 main.py -rwxr-xr-x@ 1 carlin admin 1220 Feb 2 22:56 manage.py -rw-r--r-- 1 carlin admin 142 Feb 2 23:03 models.py -rw-r--r-- 1 carlin admin 533 Feb 2 23:01 models.pyc -rw-r--r--@ 1 carlin admin 3583 Feb 2 22:56 settings.py -rw-r--r-- 1 carlin admin 1849 Feb 2 23:00 settings.pyc -rw-r--r--@ 1 carlin admin 819 Feb 2 23:01 urls.py -rw-r--r-- 1 carlin admin 306 Feb 2 23:01 urls.pyc -rw-r--r-- 1 carlin admin 781 Feb 2 23:02 views.py -rw-r--r-- 1 carlin admin 1409 Feb 2 23:01 views.pyc I don't have it wrapped in a module aside from the fact it's in a file called models.py. Thanks for the help! cw On Tue, Feb 3, 2009 at 1:15 AM, Ian Lewis <[email protected]> wrote: > > cw, > > What's the directory where models.py with your Quiz model in it? More > accurately what is the python module with your Quiz model in it? > > 2009/2/3 cdub <[email protected]> >> >> I have my application up and running with the Google App Engine Helper >> for Django. >> >> But when I went to add a simple model: >> >> models.py >> -------------- >> >> from appengine_django.models import BaseModel >> from google.appengine.ext import db >> >> class Quiz(BaseModel): >> question = db.StringProperty() >> >> I started getting the following error: >> >> IndexError at / >> list index out of range >> Request Method: GET >> Request URL: http://localhost:8080/ >> Exception Type: IndexError >> Exception Value: list index out of range >> Exception Location: /Users/carlin/Documents/Personal/Programming/ >> mysite/appengine_django/models.py in __init__, line 51 >> >> Any ideas? >> >> Thanks, >> cw >> > > > > -- > ======================================= > 株式会社ビープラウド イアン・ルイス > 〒150-0012 > 東京都渋谷区広尾1-11-2アイオス広尾ビル604 > email: [email protected] > TEL:03-5795-2707 > FAX:03-5795-2708 > http://www.beproud.jp/ > ======================================= > > > -- Carlin Wiegner CEO & Co-founder CubeTree --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
