Sunday, August 29, 2010

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

On 30 Aug., 08:26, Kenneth Gonsalves <law...@au-kbc.org> wrote:
> import lib.models
>
> from lib.models import * - you may get an error here
Both commands work without giving any error messages. However they do
not actually import anything, since the models reside in seperate
files in the models subdir and need to be imported by "import
lib.models.ModelFileName". If you do not know what I am talking about,
this is what I mean:

http://www.nomadjourney.com/2009/11/splitting-up-django-models/

Any other ideas?


Regards,
Dan

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment