title: Gunicorn, Django, and slow loading code...?
body: <p>My code uses <strong>matplotlib</strong> which takes a good second or two to load (it seems).  The problem is that when I send <code>kill -HUP &lt;pid&gt;</code> to Gunicorn, that the next request to Gunicorn loads the actual code at request time which takes a good second or two.</p>
  
  <p>I'd like to not force the user to wait that second or two.  I've been playing around with hitting the website with <code>urllib2.urlopen()</code> and forcing some instances to load the code, but I cannot guarantee that all workers have loaded the code.</p>
  
  <p>How can I work around the backend loading the code at request time vs when its started?  Do I put the offending slow loading modules in settings.py?</p>