title: Django URL-Patterns not working as expected when using INCLUDE
body: <p>I am currently working my way through the <a href="https://docs.djangoproject.com/en/1.4/intro/tutorial03/" rel="nofollow">Django Tutorial (Step 3)</a> and am stuck at the part with "Decoupling the URLconfs".</p>
  
  <p>What I try to do is to set up one URL-Pattern that catches lnadmin/, to redirect to the django admin, and eventually another catch-all that redirects to other patterns included from another file.</p>
  
  <p>Here's my mysite/urls.py:</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
  
  url(r'^lnadmin/', include(admin.site.urls)), #match admin
  url(r'^test/', include('lnapp.urls')), #match test, should be a catch-all later
  )
  </code></pre>
  
  <p>and here's the lnapp/urls.py, which is supposed to match hash/(anything)/:</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  
  urlpatterns = patterns('lnapp.views',
      url(r'^hash/(?P&lt;hash&gt;.+)/$', 'hash'), #match part to load from hash
  )
  </code></pre>
  
  <p>I had this pattern in the main url.py before, and it worked as intended. 
  What's happening now is that when I open (mydomain)/lnadmin/, it tries to access lnapp.views.hash (Could not import lnapp.views.hash, as no view is defined yet). </p>
  
  <p>This doesn't make any sense to me, as lnadmin/ should be matched by the first pattern, and /lnadmin/ doesn't match test/hash/(anything)/. As soon as I comment out the one url in lnapp/urls.py, it redirects to the admin, as intended.</p>
  
  <p>Swapping both urls in the main url.py has no effect.</p>