title: How to load a custom JS file in Django admin home?
body: <p>I have a heavily customized Django admin where it's very simple to load a custom JS file for each of my ModelAdmins:</p>
  
  <pre><code>class MyModelAdmin(admin.ModelAdmin):
      class Media:
          js = ('js/admin/mymodel.js',)
  </code></pre>
  
  <p>But how do I do this for the admin "homepage," where all my admin models are listed?</p>
  
  <p><strong>Update #1</strong>: amending my question, since the solutions below aren't that useful if I cannot efficiently include Django's jQuery. So, how do I include Django's jQuery in the JS file?  If I wrap my code with (as I do in my other ModelAdmin JS files): </p>
  
  <pre><code>(function ($) {
      // my code here...
  })(django.jQuery);
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>ReferenceError: django is not defined.</p>
  </blockquote>
  
  <p>Thanks.</p>
  
  <p><strong>Update #2</strong>: I was able to include Django's jQuery successfully by following this answer: <a href="https://stackoverflow.com/a/10584539/585783">https://stackoverflow.com/a/10584539/585783</a></p>