On 5 dec 2005, at 13.25, maskedbeagle wrote:
What Im specifically wondering relates to organisation and models -
before I waste time trying - if I was to establish different models
for
my app e.g. django-admin.py startapp mammal, django-admin.py startapp
reptile, django-admin.py startapp zoo, django-admin.py staff - to what
extent can inter model referrencing be organised - esp for purposes of
creating schema? The purpos being is that perhaps staff, can be taken
and used in a whole new project.
You have the whole Python and Django infrastructure at you disposal.
Install you app in a project and all that apps' models will be
available through django.models.app. Another way is to simply put
your models somewhere on your path and import them. If you want to
composite a model you can use subclassing or OneToOneField (http://
www.djangoproject.com/documentation/models/one_to_one/).
and while you're at it - if you can spare the indulgence - lemme know
why you went with djengo over tg or ror etc?
Over TG? Cohesiveness. Admin-app. Over Rails? Same as TG + it's Python.
- Daniel