title: Django load resources on startup
body: <p>How can I load resources from mysql database when Django starts up and put it in memory (Redis) to use by all the applications. </p>
  
  <p>I have seen this [<a href="https://docs.djangoproject.com/en/dev/ref/applications/#django.apps.AppConfig.ready]" rel="nofollow">https://docs.djangoproject.com/en/dev/ref/applications/#django.apps.AppConfig.ready]</a></p>
  
  <pre><code>class MyAppConfig(AppConfig):
          def ready(self):
  </code></pre>
  
  <p>But they mention not use db connections inside ready function. How can do it when my Website starts.?</p>
  
  <p>And Can I also set cache value inside ready ?</p>
  
  <pre><code>from django.core.cache import cache
  cache.set()
  </code></pre>