You seem to be pretty on top of things since you're already poking at
the internals of the model module magic, but just in case, I want to
make sure you've seen this:
http://www.djangoproject.com/documentation/model_api/#models-across-
files
and the section immediately following it.
Also, it's not clear from your message whether you've actually *tried
out* those model module configurations (using 'from django.models.xxx
import yyy', of course) or if you only tried to verify it by going
straight to get_module()...
Regards,
Jeff
On Nov 19, 2005, at 5:12 AM, Andreas Stuhlmüller wrote:
Are there any guidelines for managing large applications with Django?
Most of the time it is possible to split those into several smaller
apps, but sometimes it isn't - what is the recommended way to handle
large apps? For example, does Django support splitting the models file
into several packages? This seems to be fairly easy for the views, but
the meta magic might make turning
models/
__init__.py
myapp.py
into
models/
__init__.py
myapp/
__init__.py
first.py
second.py
or maybe
models/
some_models/
__init__.py
first.py
second.py
other_models/
__init__.py
third.py
fourth.py
__init__.py
myapp.py
impossible (specifically, Django's internal get_module()-function and
the _MODELS attribute made some problems when I tried to do this).
Any hints?
Andreas
--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission. If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.