title: django 2.0 - including urls file from an app to the root urls file
body: <p>I'm interested in have for each app their own urls.py file and then, include them in the root urls.py file using the include django function like this <code>include('myapp.urls')</code>.</p>
  
  <p>Everything here follows the django tutorial: <a href="https://docs.djangoproject.com/en/2.0/intro/tutorial01/" rel="nofollow noreferrer">enter link description here</a></p>
  
  <p>So, in <strong>root urls.py</strong> it is like this:</p>
  
  <pre><code>from django.url import include, path
  urlpatterns = [ path('folio/', include('folio.urls')) ]
  </code></pre>
  
  <p>and now in the <strong>folio urls.py</strong> it is like the following:</p>
  
  <pre><code>from django.urls import path
  from . import views
  urlpatterns = [ path('', views.home, name='home') ]
  </code></pre>
  
  <p>After some tryings all I get is page not found.</p>
  
  <p><a href="https://i.stack.imgur.com/QBKbo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QBKbo.png" alt="enter image description here"></a></p>
  
  <p>What am I missing?</p>
  
  <p>There's a variation to this to work, in this case I just need to import the app to the <strong>root urls.py</strong> as following:</p>
  
  <pre><code>from django.url import path
  from folio import views
  urlspatterns = [ path('', views.home, name='home') ]
  </code></pre>