Model can't be in your root directory.
On Oct 13, 1:03 pm, ghostrocket <[EMAIL PROTECTED]> wrote:
> this is the issue:
>
> line 51 of appengine_dango/models.py is:
>
> self.app_label = model_module.__name__.split('.')[-2]
>
> i'm not sure why we need the ".split('.')[-2]" but my model_module is
> not returning a string with a '.' in it. any idea if this is a bug or
> did i misconfigure something?
>
> On Oct 13, 12:00 pm, ghostrocket <[EMAIL PROTECTED]> wrote:
>
> > Hi All -
>
> > This is driving me crazy, any help is greatly appreciated. The
> > following:
>
> > class MyModel(BaseModel):
> > title = db.StringProperty(required=True)
>
> > and
>
> > stuff =MyModel(title="mytitle")
>
> > yields "IndexError: list index out of range"
>
> > but extending db.Model instead of BaseModel works just fine. What
> > gives?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---