title: Iterating over a subset of Apps in Django
body: <p>As part of a Django project, my user will be able to select from a variety of options. The functionality for each option is stored in a separate app. My project structure looks something like this:</p>
  
  <pre><code>MyProject/
      MyProject
      App1
      App2
      Options/
          Option1/
          Option2/
          Option3/
          …
      …
      manage.py
  </code></pre>
  
  <p>Option1, Option2 etc. is each an App in its own right, and listed in <code>INSTALLED_APPS</code> My question is: Is there a way of iterating over each app contained within the options directory. For example suppose each app contained a file called utils.py with a function called foo in each utils.py.</p>
  
  <p>Is there a way of doing something like this:</p>
  
  <pre><code>from .. import Options
  survey = [ app.utils.foo() for app in Options]
  </code></pre>
  
  <p>Failing this, is there a way to just iterate over all apps? Is there something I can do with <code>django.apps</code> perhaps?</p>