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

后端 未结 7 1350
一个人的身影
一个人的身影 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.

    0 讨论(0)
提交回复
热议问题