title: Django, URL and Views not found
body: <p>I'm using Django 2.1 and testing views.py and urls.py
  What I don't understand is why whenever I enter the URL <a href="http://127.0.0.1:8000/blog/post_list" rel="nofollow noreferrer">http://127.0.0.1:8000/blog/post_list</a> I get a 404 error message</p>
  
  <p>My top urls.py:</p>
  
  <pre><code>from django.urls import path
  from django.contrib import admin
  from django.conf.urls import include, url
  from organizer import urls as organizer_urls
  from blog import urls as blog_urls
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('', include(organizer_urls)),
      path('tag/', include(organizer_urls)),
      path('startup/', include(organizer_urls)),
      path('blog/', include(blog_urls))
  ]
  </code></pre>
  
  <p>my application's urls.py</p>
  
  <pre><code>from django.urls import path
  from blog.views import post_list, post_detail
  
  urlpatterns = [
      path('',
          post_list,
          name='blog_post_list'),
      path(
          '&lt;int:year&gt;/&lt;int:month&gt;/&lt;slug:slug&gt;',
          post_detail,
          name='blog_post_detail'),
  ]
  </code></pre>
  
  <p>my application's views.py:</p>
  
  <pre><code>from django.shortcuts import render, get_object_or_404
  from .models import Post
  # Create your views here.
  
  def post_list(request):
      return render(
          request,
          'blog/post_list.html',
          {'post_list':Post.object.all()}
      )
  
  def post_detail(request, year, month, slug):
      post = get_object_or_404(
          Post,
          pub_date__year=year,
          pub_date__month=month,
          slug=slug)
      return render(
          request,
          'blog/post_detail.html',
          {'post': post})
  </code></pre>
  
  <p>the error message is:</p>
  
  <blockquote>
    <p>Using the URLconf defined in suorganizer_project.urls, Django tried
    these URL patterns, in this order:</p>
    
    <p>admin/ tag/tag_list [name='organizer_tag_list'] tag//
    startup/startup_list [name='organizer_startup_list'] startup//
    [name='organizer_startup_detail'] tag/ startup/ blog/ The empty path
    didn't match any of these.</p>
  </blockquote>
  
  <p>Why ? The url is  there:</p>
  
  <pre><code>path('',
          post_list,
          name='blog_post_list'),
  </code></pre>
  
  <p>which would take me to post_list views:</p>
  
  <pre><code>def post_list(request):
      return render(
          request,
          'blog/post_list.html',
          {'post_list':Post.object.all()}
      )
  </code></pre>
  
  <p>and returns a query for all objects in post --Post.object.all()-- ?</p>
  
  <p>I don't understand what i'm missing, would appreciate your help ! :)</p>