title: Django 1.7 app config ImportError: No module named appname.apps
body: <p>I'm trying to setup a custom application configuration for one of my Django app called 'articles' following the documentation at <a href="https://docs.djangoproject.com/en/dev/ref/applications/" rel="noreferrer">https://docs.djangoproject.com/en/dev/ref/applications/</a>, but I keep getting <code>ImportError: No module named articles.apps</code> when execute <code>./manage.py check</code> (or any other management command such as <code>./manage.py runserver</code>)</p>
  
  <p>This is a tree of the project</p>
  
  <pre><code>projectname
      ├── apps
      │   ├── articles
      │   │   ├── admin.py
      │   │   ├── apps.py
      │   │   ├── __init__.py
      │   │   ├── migrations
      │   │   │   ├── 0001_initial.py
      │   │   │   └── __init__.py
      │   │   ├── models.py
      │   │   ├── templates
      │   │   │   └── articles
      │   │   ├── templatetags
      │   │   │   ├── articles_tags.py
      │   │   │   └── __init__.py
      │   │   ├── tests.py
      │   │   ├── urls.py
      │   │   └── views.py
      │   ├── __init__.py
  </code></pre>
  
  <p>installed app in <strong>settings.py</strong>:</p>
  
  <pre class="lang-py prettyprint-override"><code>INSTALLED_APPS = (
    'grappelli',
    'django.contrib.admin', 
    'django.contrib.auth', 
    'django.contrib.contenttypes', 
    'django.contrib.sessions', 
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.humanize', 
    'grappelli.dashboard', 
    'mptt', 
    'sekizai', 
    'pytils', 
    'sorl.thumbnail',
    'sefaro.apps.utils', 
    'sefaro.apps.seo', 
    'sefaro.apps.staticpages', 
    'sefaro.apps.statictext', 
    'sefaro.apps.usersettings', 
    'sefaro.apps.navigation', 
    'sefaro.apps.slideshow',
    'sefaro.apps.articles', 
  ) 
  </code></pre>
  
  
  
  <p>Contents of <code>articles/__init__.py</code>:</p>
  
  <pre><code># articles/__init__.py
  default_app_config = 'articles.apps.ArticlesConfig'
  </code></pre>
  
  <p>Contents of <code>articles/apps.py</code>:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  from django.apps import AppConfig
  from django.utils.translation import ugettext_lazy as _
  
  
  class ArticlesConfig(AppConfig):
  
      name = 'articles'
      verbose_name = _(u'Articles')
  </code></pre>
  
  <p>And I have <code>'projectname.apps.articles'</code> in my <code>INSTALLED_APPS</code></p>
  
  <p>Just to ensure that I really have all these files and haven't messed up with paths</p>
  
  <pre><code>&gt;&gt;&gt; from projectname.apps.articles.apps import ArticlesConfig
  &gt;&gt;&gt; ArticlesConfig
  &lt;class 'projectname.apps.articles.apps.ArticlesConfig'&gt;
  </code></pre>
  
  <p>Everything imports just fine...</p>
  
  <p>But:</p>
  
  <pre><code>(vagrant)vagrant@vagrant-ubuntu-trusty-32:~/django$ ./manage.py check
  Traceback (most recent call last):
    File "./manage.py", line 10, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File "/home/vagrant/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
      utility.execute()
    File "/home/vagrant/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
      django.setup()
    File "/home/vagrant/local/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
      apps.populate(settings.INSTALLED_APPS)
    File "/home/vagrant/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
      app_config = AppConfig.create(entry)
    File "/home/vagrant/local/lib/python2.7/site-packages/django/apps/config.py", line 112, in create
      mod = import_module(mod_path)
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
      __import__(name)
  ImportError: No module named articles.apps
  </code></pre>