title: Django application onload?
body: <p>Is there a way to hook on the loading of the django application?
  I want to be able to execute code when the application is loaded, so that I can for example
  create static variables to be used later on by the application or establish connections to other servers.</p>
  
  <p>The best I came across was to add code in the <strong>__init__.py</strong> file (<a href="https://stackoverflow.com/questions/1781400/how-do-i-create-application-scope-variable-django">How do I create application scope variable django?</a>) but the problem with this solution is that I want my code to be executed after django has finished its startup process, and not in the middle/start of it.</p>
  
  <p>Another solution I came up with is to have a view that handles this process and then when the application is deployed I issue a request to the url of the view. I don't like this solution very much, I prefer it to be a part of the loading of the application.</p>
  
  <p>Any ideas of how to pull this out?
  Thanks;</p>
  
  <p>edit: Apllication refers to the entire django project and not one of the INSTALLED_APPS</p>