You need to remove the references on one side or the other. You need to make
a choice. will events manage photos, or will photos manage events, and so
on. Then if events manage photos, you need to remove all references to
events from the photos app.
It sounds like it will take some reworking of your application logic, but
that's the nut of it.


On Sun, Aug 23, 2009 at 8:53 AM, Andrea Zilio <m.ep...@gmail.com> wrote:

>
> I'm intrested in the answer too
>
> On Aug 23, 1:36 am, "Chris H." <chris.hasenpf...@gmail.com> wrote:
> > So I'm trying to get my head around making my small, tightly focused
> > apps reusable.  I've done this, but right now still have
> > "dependencies" between one another, that I'd like to remove.  For
> > simplicity sake, I have an Articles, Events, and Photos app.
> >
> > Right now each Article has a photos.photo and events.event foreign key
> > relationship and each event has a photos.photo_set fk relationship.
> > Thus, as currently written all three apps are required.  I'd like to
> > rework this such that the installation of each application is not
> > required, and I'd think that additional functionality should live in
> > the newer app.
> >
> > That is, when Photos gets "installed" it looks for Articles, if that
> > is installed it hooks into the Photos model to supply the photo
> > relationship.  And if Events is installed, it'll provide the photoset
> > relationship.  If neither is installed, that's okay too, it just
> > provides it's base functionality.  When Events gets installed, it
> > looks for Articles, and if so allows you to relate an article to an
> > event.
> >
> > Surely, this has done before, right?  Or am I approaching it wrong?
> > My google foo fails me...what do I need to be searching for??
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to