title: Reverse for 'blog/article' not found. 'blog/article' is not a valid view function or pattern name
body: <p>I am currently doing a navbar in my django website. However, I'm experiencing some problems with the urls:</p>
  <p>I have created another urls.py in a new app called blogs. Here's the code for that:</p>
  <p>In the main urls.py:</p>
  <pre><code>from django.contrib import admin
  from django.urls import path, include
  from translator.views import HomeView, TranslatorView
  
  urlpatterns = [
      path('blog/', include('blog.urls')),
      path('', HomeView.as_view(), name='home'),
      path('translator/&lt;str:phrase&gt;/', TranslatorView.as_view(), name='translator'),
      path('translated/', TranslatorView.as_view(template_name='main/translated.html'), name='translated'),
      path('admin/', admin.site.urls),
  ]
  
  </code></pre>
  <p>In the blog urls.py:</p>
  <pre><code>from django.urls import path
  from .views import ArticleDetailView
  
  app_name = 'blog'
  urlpatterns = [
   path('', ArticleDetailView.as_view(), name='article' )
  ]
  </code></pre>
  <p>What I want to do is to include the path ArticleDetailView (name='article) in the navbar. So I coded this:</p>
  <pre><code>  &lt;nav class=&quot;navbar fixed-top navbar-expand-lg navbar-light&quot; style='background-color: snow;'&gt;
      &lt;div class = 'container'&gt;
        &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;
          &lt;img src=&quot;{% static 'C:\Users\marcv\OneDrive\Escriptori\Translate\Scripts\src\static\images\dna_PNG48.png'%}&quot; width=&quot;70&quot; height=&quot;30&quot; class=&quot;d-inline-block align-top&quot; alt=&quot;&quot;&gt;
  
        &lt;/a&gt;
        &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#navbarTogglerDemo01&quot; aria-controls=&quot;navbarTogglerDemo01&quot; aria-expanded=&quot;false&quot; aria-label=&quot;Toggle navigation&quot;&gt;
          &lt;span class=&quot;navbar-toggler-icon&quot;&gt;&lt;/span&gt;
        &lt;/button&gt;
        &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;navbarTogglerDemo01&quot;&gt;
          &lt;ul class=&quot;navbar-nav mx-auto&quot;&gt;
            &lt;li class=&quot;nav-item active&quot;&gt;
              &lt;a class=&quot;nav-link&quot; href=&quot;{% url 'home' %}&quot;&gt;Home &lt;span class=&quot;sr-only&quot;&gt;(current)&lt;/span&gt;&lt;/a&gt;
            &lt;/li&gt;
            &lt;li class=&quot;nav-item&quot;&gt;
              &lt;a class=&quot;nav-link&quot; href='{% url &quot;translator&quot; &quot;phrase&quot; %}'&gt;Translator&lt;/a&gt;
            &lt;/li&gt;
            &lt;li class=&quot;nav-item&quot;&gt;
              &lt;a class=&quot;nav-link&quot; href=&quot;{% url 'blog/article' %}&quot; &gt;Blog&lt;/a&gt; #Here's the problem
            &lt;/li&gt;
          &lt;/ul&gt;
  
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/nav&gt;
  </code></pre>
  <p>However, when I click on the navbar button called Blog (it's in the template), this error raises:</p>
  <p>Reverse for 'blog/article' not found. 'blog/article' is not a valid view function or pattern name.</p>
  <p>I know the error is the name I've given the url in the navbar. However, I don't know which name should I input.</p>