'MyAppConfig' must supply a name attribute
<p>i am try to run some piece of code when starting an apache server or django development server. I am using the AppConfig class to do this..(following <a href="https://docs.djangoproject.com/en/1.9/ref/applications/#django.apps.AppConfig" rel="nofollow">the docs</a>).
But while starting the server i am get the following error.</p>

<blockquote>
  <p>django.core.exceptions.ImproperlyConfigured: '{app_name}.apps.MyAppConfig' must supply a name attribute.</p>
</blockquote>

<p>following is the sample code:</p>

<pre><code>  from django.apps import AppConfig
  class MyAppConfig(AppConfig):
       def ready():
           #my stuff 
</code></pre>

<p>I don't have any idea about the error.</p>