you could try changing the import in __init__.py to someting like this: from app_name.models.model_file import Model1, Model2, ... e.g. from library.models.material import Material, MaterialImage
... might work. patrick. On 28 Okt., 10:36, Alistair Marshall <[EMAIL PROTECTED]> wrote: > I have been trying to split my models.py file into several smaller > more manageable files. I have created a folder named models, an in > there, created a __init__.py file which contains: > > from other import * > from streams import * > from units import * > > I have then split my models into the three files making sure to add > app_label = 'process' to the metatag of each model. Then when I run > 'python manage.py syncdb', It runs through and creates tables for > models from other application but doesn't create any models to do with > my process app. > > If I insert a syntax error into one of my models, it does raise an > error when I syncdb. > If I remove app_label, it does not raise an error or change the > behaviour in any way. > > am I missing anything else? > any other suggestions? > > Thanks > Alistair --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---