In order to use models and their relations you have to include them in INSTALLED_APPS regardless of which database they are stored in. This is noted in the 1.7 release notes: https://docs.djangoproject.com/en/1.8/releases/1.7/#app-registry-consistency
Maybe you don't want your local project to manage the schema of those models, in which case you should use Meta.managed=False.
On Tuesday, October 27, 2015 at 11:56:03 AM UTC-4, probleem support wrote:
-- Maybe you don't want your local project to manage the schema of those models, in which case you should use Meta.managed=False.
On Tuesday, October 27, 2015 at 11:56:03 AM UTC-4, probleem support wrote:
Tim in my real project that database is a remote database, that shouldn't be in installed apps shouldn't it.but to prove my point it did it with 2 local databases in the test project.in my real project i can't do reverse lookups on the remote database models.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/45ba6040-675a-41a3-8bf3-084c32f2b1a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment