On 8/17/05, paolo <[EMAIL PROTECTED]> wrote: > I thought it was a valid option to fragment models' classes in more > python modules, and import them inside > project/apps/application/models/application.py > However when i try django-admin.py sql application I get a traceback > (http://django.pastebin.com/339033)
Hey paolo, Yes, that's perfectly possible -- just make sure to put all the names of the model modules in the "__all__" list of models/__init__.py. Then you should be able to import from other models like so: """ from django.models import auth class Foo(meta.Model): fields = ( ForeignKey(auth.User), # ... ) """ Adrian