Django app with other apps as dependencies
Asked Answered
U

0

6

Imagine you create a reusable django app 'A' which depends on another reusable django app 'B'. Now if I want to use an app 'A' I have to add not only 'A' but also 'B' in INSTALLED_APPS? How do I add only 'A' without explicitly adding 'B' too?

Uzbek answered 30/3, 2018 at 11:13 Comment(5)
If app A depends on app B, then the general answer is "you can't". To give a more specific answer you'd need to be more specific about how your apps are dependent on each other.Behring
'B' has models that 'A' uses.Uzbek
The answer then is that you need to install both apps.Behring
... by both of them adding to INSTALLED_APPS list ?Uzbek
Yes, you have to add them both.Behring

© 2022 - 2024 — McMap. All rights reserved.