title: Defining a custom app_list in django admin index page
body: <p>I'd like to define a custom application list to use in django's admin index page because I want the apps displayed in a specific order, rather than the default alphabetical order. Trawling through various SO posts it would appear that it's not yet possible to declare the desired application order in any of the obvious places (e.g. admin.py, models.py).</p>
  
  <p>Now, I can see that the django admin's index.html file contains the following statement:</p>
  
  <pre><code>{% for app in app_list %}
     # do stuff with the app object
  </code></pre>
  
  <p>So I'd like to change this to use a custom list object called, say, my_app_list. In python I'd do this along the following lines:</p>
  
  <pre><code>from django.db.models import get_app
  my_app_list = [get_app('myapp1'), get_app('myapp2'), ..., get_app('django.contrib.auth')]
  for app in my_app_list
     ...
  </code></pre>
  
  <p>My question then is, how do I code the equivalent of the first 2 lines above into my local copy of the index.html file?</p>
  
  <p>Or, alternatively, what python source file should I insert those lines into such that the variable my_app_list is available within index.html.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Phil</p>