title: Django - include app urls
body: <p>I have the following structure (Django 1.4):</p>
  
  <pre><code>containing_dir/
      myproject/
          myapp1/
          myapp2/
          myapp3/
  </code></pre>
  
  <p>myproject, myapp1, myapp2, and myapp3 all have <strong>init</strong>.py, so they're all modules.</p>
  
  <p>In manage.py (under containing_dir) I have <code>os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")</code></p>
  
  <p>in myproject.settings i define:</p>
  
  <pre><code>[..]
  ROOT_URLCONF = 'myproject.urls'
  INSTALLED_APPS = (   
      [..]
      'myproject.myapp1',
      'myproject.myapp2',
      'myproject.myapp3',
  )
  [..]
  </code></pre>
  
  <p>In myapp1.urls.py I define:</p>
  
  <pre><code>urlpatterns = patterns('myapp1',
      url(r'^agent/$', 'views.agent',    name='agent')
  )
  </code></pre>
  
  <p>and I try to import it in myproject.urls I try to import myapp1 urls like this:</p>
  
  <pre><code>(r'^myapp1/', include('myproject.myapp1.urls'))
  </code></pre>
  
  <p>but whenever I try lo load <code>localhost:8000/myapp1/agent</code> I get</p>
  
  <pre><code>Exception Value: No module named myapp1
  </code></pre>
  
  <p>I think thrown from withing myapp1.urls</p>
  
  <p>Any help? thanks</p>