title: Error on Django URL : URLconf defined in website.urls, Django tried these URL patterns
body: <p>I am running a django project on a ubuntu digital ocean droplet with nginx/gunicorn on my own domain. I am using a virtual environment with Django version 3.1.6 and Python 3.8.5</p>
  <p>I am trying to follow <a href="https://www.youtube.com/watch?v=a48xeeo5Vnk&amp;list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p&amp;index=2" rel="nofollow noreferrer">Corey Shafers Django tutorial</a> to create a blog app and while I can reach the generic django success page on example.com I ran into the following from example.com/blog :</p>
  <p>Page not found (404)
  Request Method: GET
  Request URL:    example.com/blog
  Using the URLconf defined in website.urls, Django tried these URL patterns, in this order:</p>
  <p>admin/
  The current path, blog, didn't match any of these.</p>
  <hr />
  <p>My current ~/projectdir/website/urls.py (see edit at bottom):</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>from django.contrib import admin
  from django.urls import path, include
  
  urlpatterns = [
          path('admin/',admin.site.urls),
          path('', include('blog.urls')),
  ]</code></pre>
  </div>
  </div>
  </p>
  <p>My ~/projectdir/blog/urls.py:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>from django.urls import path
  from . import views
  
  urlpatterns = [
      path('', views.home, name='blog-home'),
      path('about/', views.about, name='blog-about'),
  ]</code></pre>
  </div>
  </div>
  </p>
  <p>My ~/projectdir/blog/views.py:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>from django.shortcuts import render
  from django.http import HttpResponse
  
  
  def home(request):
      return HttpResponse('&lt;h1&gt;Blog Home&lt;/h1&gt;')</code></pre>
  </div>
  </div>
  </p>
  <hr />
  <p>As far as I can tell everything looks ok syntax-wise but I can't figure out why the URLconf is not seeing the blog path. I have tried reloading nginx and that didn't help.</p>
  <h2>EDIT</h2>
  <p>I have edited /projectdir/website/urls.py to look like this:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>from django.contrib import admin
  from django.urls import path, include
  
  urlpatterns = [
          path('admin/',admin.site.urls),
          path('blog', include('blog.urls')),
  ]</code></pre>
  </div>
  </div>
  </p>
  <p>I am still getting the same 404 reponse with &quot;The current path, blog, didn't match any of these.&quot;</p>