Fabio Natali wrote: [...] > I need a table similar to what you get when entering the admin panel, > that is a list of all my models inside a certain app.
Hi Fabio! Following code in your views.py and a for loop in your template will do the trick: def index(request): models_list = [] for model in get_models(my_proj.my_app.models): models_list += [model.__name__] t = get_template('index.html') html = t.render(Context({'models_list': models_list})) return HttpResponse(html) Regards, Fabio. -- Fabio Natali --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---