If anyone is interested I have uploaded a script for splitting a
monolithic models.py into multiple files in ./models
https://github.com/mdewhirst/split-models
Python 2.7 and Django 1.4
One of mine was getting too big and too labour-intensive to debug after
a manual split. This was due to accretion of cruft during my learning
(which hasn't stopped). So I thought I'd write a script to handle it and
my other apps as well.
The lack of unit tests is fair (IMO) because the app unit tests should
prove whether it worked or not. You recover by deleting the output,
renaming models.bak to models.py, tweaking the script (or your
models.py) then trying again. It is non-destructive.
While it works for me, I do not for a moment think it is either bug-free
nor efficient nor capable of dealing with models.py files I am unaware of.
Hope it helps someone.
Cheers
Mike
--
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.