title: Overriding AppConfig.ready()
body: <p>Trying to catch the basics of Django. Namely how Applications work.
  The docs: <a href="https://docs.djangoproject.com/en/stable/ref/applications/#methods" rel="noreferrer">https://docs.djangoproject.com/en/stable/ref/applications/#methods</a></p>
  
  <p>And in the code of the class AppConfig we can read: </p>
  
  <pre><code>def ready(self):
      """
      Override this method in subclasses to run code when Django starts.
      """
  </code></pre>
  
  <p>Well, this is my example:</p>
  
  <p><strong>my_app/apps.py</strong></p>
  
  <pre><code>class MyAppConfig(AppConfig):
      name = 'my_app'
  
      def ready(self):
          print('My app')
  </code></pre>
  
  <p>I just want to make the ready method work. That is, when Django finds my_app, let it run the ready method. </p>
  
  <p>The app is registered in INSTALLED_APPS. </p>
  
  <p>I execute 'python manage.py runserver'. And nothing is printed.</p>
  
  <p>If I place a breakpoint inside the ready method, the debugger don't stop there.</p>
  
  <p>Could you help me: what is my mistake in understanding here. Thank you in advance.</p>
  
  <pre><code>INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'my_app',
  ]
  </code></pre>
  
  <p>And I created a view </p>
  
  <p><strong>my_app/views.py</strong></p>
  
  <pre><code>def index(request):
      print('Print index')
  </code></pre>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'^$', my_app_views.index, name='home')
  ]
  </code></pre>
  
  <p>Well, the view is working. This means that the application is registered.</p>