So, i have a file models.py in MyApp folder:
from django.db import models
class Model_One(models.Model):
...
class Model_Two(models.Model):
...
...
It can be about 10-15 classes.
How to find all models in the MyApp and get their names?
Since models are not iterable, I don't know if this is even possible.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…