I find it's pretty normal. Some of my models get quite large as well. For one of my projects I did something like this:
Split models.py into multiple files. Create a models directory in the app's directory. Move the model files to that directory. Create an __init__.py in app/models/ So the structure looked like this: largemodels/ ...fixtures/ ...models/ ......__init__.py ......ReallyFakeModel.py ......ReallyFakeModelTwo.py ......ReallyFakeModelThree.py ...templates/ ...urls.py ...views.py ...admin.py ...YouGetThePoint In __init__.py: from largemodels.models.ReallyFakeModel import ReallyFakeModel from largemodels.models.ReallyFakeModelTwo import ReallyFakeModelTwo from largemodels.models.ReallyFakeModelThree import ReallyFakeModelThree Then in your code you can still do things like from largemodels.models import * or from largemodels.models import ReallyFakeModel I'm not sure if this is the best way to go, but I liked the result myself. I'd also love to see how other people do this. Or hear if what I've done is terrible =) Matt On Thu, Mar 4, 2010 at 10:46 AM, filias <filipa.andr...@gmail.com> wrote: > Hi, > > I have a model which starts to have "too many" properties and methods. > I dont know if this is normal or if there are better ways to deal with > increasing complexity of a model. > > In the beginning there were just 4 or 5 properties and methods but > with the news demands of the app they started to grow. I am afraid > this becomes unreadable and "too big". > > I would like to read about your best practices related to this topic: > having a model with lots of properties and methods. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.