Re: shared model

2008-09-26 Thread Erik Allik
You don't have to put your model to the root of your project to be able to share it amongst your apps. You can reference models across applications. You might consider creating another application for that shared model, too. Erik On 26.09.2008, at 15:46, Gabriel Rossetti wrote: > > Gabrie

Re: shared model

2008-09-26 Thread Gabriel Rossetti
Gabriel Rossetti wrote: > Hello everyone, > > I would like to share a model with all my apps. I moved it from the app > to the project's root dir, but now the admin interface can't find it! > Does anyone know how to do this? I thought of createing empty models in > each app and importing everyt

Re: shared model relationship question

2006-10-03 Thread Malcolm Tredinnick
On Tue, 2006-10-03 at 18:49 +1000, Benjamin Ward wrote: > > Im very new to this so please forgive if this is an obvious question: > > How do you describe these relationships in a model in Django: > > 1) > UserProfile extends User. UserProfile has_a Address. Event has_a > Address. > > Where A