I have been using this little trick to get a list of all my model classes that are subclasses of Component:
component_list = [] for k in django.contrib.admin.site._registry: if issubclass(k, Component): component_list.append(k) It works splendidly under the development server or using the shell under manage.py. However, under an apache server with mod_python, it doesn't work. I only get 2 of my classes out of about 12. Does admin.site.register() function differently under mod_python? The apache2 error_log only had something about "server reached MaxClients setting, consider raising the MaxClients setting." --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---