Ok I've got it working. I had to import models in
models_app/models/__init__.py as Malcom suggested. I've used app_label
instead of app_name in the Meta classes to make it work, is this ok?

On Fri, Jul 4, 2008 at 12:33 PM, Malcolm Tredinnick <
[EMAIL PROTECTED]> wrote:

>
>
> On Fri, 2008-07-04 at 12:22 +0200, Alex Rades wrote:
> [...]
>
> > So for now there is only this models_app which should contain the
> > models. When I try to run syncdb, models under models/ are not
> > imported. Is there any magic to do into
> > models_app/models/__init__.py ?
>
> You need to import them into the models/ namespace, because Django only
> looks in <app_name>.models for any model definitions. So your
> __init__.py will be a bunch of imports from your subfiles (with
> judicious use of __all__ in the subfiles, it's just going to be a list
> of "from component import *" sort of lines).
>
> Regards,
> Malcolm
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to