title: django - Import Error: No module named: 'dashboard'
body: <p>I am trying to roll my own dash board in django 1.9 using python 3.4. Within the main project app urls.py file I am trying to include the urls.py file from my new dashboard app.</p>
  
  <h2>Directory Structure</h2>
  
  <pre><code>venv/
  pic/
      docs/
          (developer notes, deployment notes, etc)
      pic/
          __init__.py
          manage.py
          test.py
          apps/
              __init__.py
              dasboard/
                  migrations/
                  static/
                  __init__.py
                  admin.py
                  apps.py
                  models.py
                  test.py
                  urls.py
                  views.py
              core/
                  (other stuff unrelated to issue)
          pic/
              media/
              settings/
              static/
              __init__.py
              urls.py
              wsgi.py
  </code></pre>
  
  <h2>Related Files</h2>
  
  <h3>pic/pic/pic/urls.py</h3>
  
  <pre><code>from django.conf.urls import url
  from django.conf.urls import include
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'^dashboard/', include('dashboard.urls')),
  ]
  </code></pre>
  
  <h3>pic/pic/apps/dashboard/urls.py</h3>
  
  <pre><code>from django.conf.urls import url
  from pic.apps.dashboard import views
  
  urlpatterns = [
      url(r'^$', views.index, name='index'),
  ]
  </code></pre>
  
  <h3>pic/pic/apps/dashboard/views.py</h3>
  
  <pre><code>from django.http import HttpResponse
  
  # Create your dashboard views here.
  
  def index(request):
      return HttpResponse("Hello, world. You're at the dashboard index.")
  </code></pre>
  
  <h3>pic/pic/pic/settings/base.py (selected relevant pieces)</h3>
  
  <pre><code>INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'apps.core',
      'apps.dashboard',
  ]
  ROOT_URLCONF = 'pic.urls'
  </code></pre>
  
  <h3>Error received accessing /dashboard/</h3>
  
  <pre><code>ImportError at /dashboard/
  
  No module named 'dashboard'
  
  Request Method:     GET
  Request URL:    http://dev.pic.com/dashboard/
  Django Version:     1.9.6
  Exception Type:     ImportError
  Exception Value:    
  
  No module named 'dashboard'
  
  Exception Location:     /home/&lt;user&gt;/Repositories/Websites/pic/venv/lib/python3.4/importlib/__init__.py in import_module, line 109
  Python Executable:  /home/&lt;user&gt;/Repositories/Websites/pic/venv/bin/uwsgi
  Python Version:     3.4.3
  Python Path:    
  
  ['.',
   '',
   '/home/&lt;user&gt;/Repositories/Websites/pic/venv/lib/python3.4',
   '/home/&lt;user&gt;/Repositories/Websites/pic/venv/lib/python3.4/plat-x86_64-linux-gnu',
   '/home/&lt;user&gt;/Repositories/Websites/pic/venv/lib/python3.4/lib-dynload',
   '/usr/lib/python3.4',
   '/usr/lib/python3.4/plat-x86_64-linux-gnu',
   '/home/&lt;user&gt;/Repositories/Websites/pic/venv/lib/python3.4/site-packages']
  
  Server time:    Sun, 26 Jun 2016 14:49:07 -0700
  </code></pre>
  
  <h2>Notes</h2>
  
  <p>127.0.0.1/admin/ works and loads the admin login properly.  I know that is all fine.
  When attempting to access 127.0.0.1/dashboard/ I receive the error mentioned above.</p>
  
  <p>When using the django shell  I can do <code>from apps import dashboard</code> successfully. <code>dashboard.models</code> returns the proper output, but <code>dashboard.urls</code> throws an `Attribute Error: 'module' object has no attribute 'urls'.  Not sure if that extra bit of information is useful, but I thought it was odd behavior. Discovered it while trying to debug this issue.</p>
  
  <h3>Background</h3>
  
  <p>I am familiar with older versions of django as I have been maintaining a 1.7 project for approx 5+ months.  My python experience is not substantial but I currently make a living doing so.  I am still learning things about django and python frequently though.</p>
  
  <p>Thank you for taking the time to review my problem. I was hoping not to have to post here, but after 4 hours I have made no progress. I hope with your help I can figure this one out!</p>