tags:

views:

42

answers:

1

Hi,

I'd like to retrieve automatically, in a loop, the names of the models located in a specific Django app inside my project. Does someone know how to do that ?

Best Regards

Guillaume

+3  A: 
from django.db import get_models, get_app

app = get_app('myappname')
models = get_models(app)
Daniel Roseman