I made some tests, it seems that imports don't work.

In th __init__ I tried:
from project.app.models.module import Class
... and Class is not imported

Is the project package in the python's path as  call manage.py
syncdb ?

GRRR


On 5 oct, 17:24, JF Simon <ad...@jfsimon.fr> wrote:
> Hi,
>
> I tried in vain to make it work !!! I've got some models modules in a
> pckage named "models" in my app, I tried these 2 solutions (who are
> mostly the sames) :
> -http://www.acooke.org/cute/UsingaDire0.html
> -http://www.ifisgeek.com/2009/01/26/splitting-django-models-into-separ...
>
> So:
> - I import the models classes in the package's __init__.py
> - I declare them in the __all__
>
> And syncdb still don't see my models classes. What am I missing ? Is
> it due to the version of Django (i'm using the svn one) ?
>
> I'm desperate ...
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to