title: Can anyone help my find find error in django?
body: <p>I am new to Django. I have a project which has 2 child apps: "visit" and "main". The error is in base.html file in href for the navigation bar. 
  I am facing No reverse match found error. </p>
  
  <p>main/base.html:</p>
  
  <pre><code>    {%load staticfiles%}
  
      &lt;link href="{%static "main/vendor/bootstrap/css/bootstrap.min.css"%}" rel="stylesheet"&gt;
  
  
      &lt;link href="{%static "main/css/small-business.css"%}" rel="stylesheet"&gt;
  
    &lt;/head&gt;
  
  &lt;nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top"&gt;
        &lt;div class="container"&gt;
          &lt;a class="navbar-brand" href="/home.html"&gt;Ekyam&lt;/a&gt;
          &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"&gt;
            &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
          &lt;/button&gt;
          &lt;div class="collapse navbar-collapse" id="navbarResponsive"&gt;
            &lt;ul class="navbar-nav ml-auto"&gt;
              &lt;li class="nav-item active"&gt;
                &lt;a class="nav-link" href='{%url 'main:home'%}'&gt;Home
                  &lt;span class="sr-only"&gt;(current)&lt;/span&gt;
                &lt;/a&gt;
              &lt;/li&gt;
              &lt;li class="nav-item"&gt;
                &lt;a class="nav-link" href='{%url 'main: incubators'%}'&gt;Incubators&lt;/a&gt;
              &lt;/li&gt;
              &lt;li class="nav-item"&gt;
                &lt;a class="nav-link" href="#"&gt;About&lt;/a&gt;
              &lt;/li&gt;
              &lt;li class="nav-item"&gt;
                &lt;a class="nav-link" href="#"&gt;Services&lt;/a&gt;
              &lt;/li&gt;
              &lt;li class="nav-item"&gt;
                &lt;a class="nav-link" href="#"&gt;Contact&lt;/a&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/nav&gt;
  {%block content%}
  
  {%endblock%}
  </code></pre>
  
  <p>This is the error that I am facing </p>
  
  <pre><code>NoReverseMatch at /home.html
  
  Reverse for ' incubators' not found. ' incubators' is not a valid view function or pattern name.
  
  Request Method:     GET
  Request URL:    http://127.0.0.1:8000/home.html
  Django Version:     1.11.3
  Exception Type:     NoReverseMatch
  Exception Value:    
  
  Reverse for ' incubators' not found. ' incubators' is not a valid view function or pattern name.
  
  Exception Location:     C:\Users\my dell\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\resolvers.py in _reverse_with_prefix, line 497
  Python Executable:  C:\Users\my dell\AppData\Local\Programs\Python\Python36-32\python.exe
  Python Version:     3.6.1
  Python Path:    
  
  ['C:\\Users\\my dell\\Desktop\\Projects\\junityme'
  </code></pre>
  
  <p>Help would be appreciated.
  site urls:</p>
  
  <pre><code>from django.conf.urls import include, url
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'^', include('visit.urls')),
      url(r'^', include('main.urls', namespace='main')),
  
  ]
  
  from django.conf.urls import url
  from . import views
  
  urlpatterns = [
      url(r'^', views.home, name='home'),
      url(r'/incubators/', views.incubators, name='incubators'),
      url(r'/about/', views.about, name='about'),
  ]
  </code></pre>
  
  <p>I have posted the the url files. As you can see I have declared name space for the "main" app for referencing it in base.html.
  What I have done in "visit" app I have setup registration/login portal which redirects user to the "main" app.  Loging in will unlock the main features of the app.</p>
  
  <p>views.py:</p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  
  
  def home(request):
      return render(request, 'main/home.html')
  
  
  def incubators(request):
      return render(request, 'main/incubators.html')
  
  def about(request):
      return HttpResponse("dsfsddsf")
  </code></pre>