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:

>
> 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 everything from the shared model, but I don't
>> really like this.
>>
>> Thank you,
>> Gabriel
>>
> I think I got it, I added the project' s root to the INSTALLED_APPS in
> settings.py and now the model appears in the admin page. I'd apreciate
> any feedback.
>
> Gabriel
>
> >


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to