I have a central app that is going to be in all projects. I have a few ancillary apps that may or may not be part of my project. What I'd like to do in my main view code is to see if the app is loaded before I invoke a call in that ancillary app. Would the best bet be to pull in settings.INSTALLED_APPS and see if it exists there, then if so, call the method in that app that relates to my main app?
To provide some context, I have an app called page and an app called question. In some projects there is no need for questions. Question has a foreignKey to page. I have a load_page view that looks for page.question_set.all() but I only want this called if it's loaded. If INSTALLED_APPS is the best way, are there helper functions to check if it exists there or do I have to iterate and see for myself. Thanks, Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---