Re: Re: Models as a Package

2006-11-10 Thread Nathan Yergler
On Thu, 2006-11-09 at 15:49 -0600, James Bennett wrote: > On 11/9/06, Nathan Yergler <[EMAIL PROTECTED]> wrote: > >class Meta: > > app_label = 'app_name' > > Yeah, that's a huge wart that comes out of the way the metasystem > works right now. Anybody

Re: Models as a Package

2006-11-09 Thread Nathan Yergler
Nevermind, I figured it out... I was forgetting the annoying class MyModel(models.Model): ... class Meta: app_label = 'app_name' Sigh... On Thu, 2006-11-09 at 15:57 -0500, Nathan Yergler wrote: > Any reason that making models.py into a package seems to make the models > inv

Models as a Package

2006-11-09 Thread Nathan Yergler
Any reason that making models.py into a package seems to make the models invisible to syncdb? For example, with a project foo, I have a directory "models" that contains "bar.py" and "__init__.py" __init__ contains "from bar import *", but syncdb doesn't seem to see the models. Thoughts?