Get a list of all installed applications in Django and their attributes

后端 未结 7 1352
一个人的身影
一个人的身影 2020-12-13 17:32

In my Django website, I\'m creating a class that interact dynamically with other applications installed in the website. I have to do a manipulation on each field of each app

7条回答
  •  生来不讨喜
    2020-12-13 18:21

    The list of installed applications is defined in settings.INSTALLED_APPS. It contains a tuple of strings, so you can iterate on it to access each application's name.

    However, I'm not sure what you mean by each application's attributes and fields.

提交回复
热议问题