> I've a projects that should share the db models > > I know I can create a models.py file in the project's home dir but > manage.py syncdb doesn't read it from there (and I really want to keep > it all on Python code without need to run mysql -u app -p....)
I've done this in one project by having a "core" (core/central/common...whatever you want to call it) app that holds all my shared models. Just make sure that your settings.py file has it included in the INSTALLED_APPS setting. I then simply "import core" and then can refer to my shared models in any related app. Since it's in the INSTALLED_APPS the "manage.py syncdb" can manage the tables for you like it does your other models. -tim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---