title: why homepage is not showing while runserver in django and after uploading in heroku it's not working?
body: <p>starting new in django, first i run pipenv and pipenv shell in cmd and then i have stated the "pages" project in django.</p>
  
  <p>in pages_project/settings.py file:</p>
  
  <pre><code>ALLOWED_HOSTS = ['*']
  
  INSTALLED_APPS = [ ................... 'pages.apps.PagesConfig', # new ]
  
  TEMPLATES = [ {................. 'DIRS': [os.path.join(BASE_DIR,'templates')],.....}
  </code></pre>
  
  <p>in pages_project/urls.py:</p>
  
  <pre><code>from django.contrib import admin
  from django.urls import path,include
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('', include('pages.urls')),
   ]
  </code></pre>
  
  <p>in pages/views.py:</p>
  
  <pre><code>from django.views.generic import TemplateView
  
  # Create your views here.
  
  class HomePageView(TemplateView):
      template_name='home.html'
  
  class AboutPageView(TemplateView):
      template_name='about.html'
  </code></pre>
  
  <p>in pages/urls.py:</p>
  
  <pre><code>from django.urls import path
  from .views import HomePageView, AboutPageView
  
  urlpatterns = [
      path('about/', AboutPageView.as_view(), name='about'),
      path('', HomePageView.as_view(),name='home'),
  ]
  </code></pre>
  
  <p>i have created three html files in pages/templates/..... home.html, base.html and about.html</p>
  
  <p>home.html code: </p>
  
  <pre><code>{%extends 'base.html'%}
  {%block content%}
  
  &lt;h1&gt;Homepage&lt;/h1&gt;
  {%endblock%}
  </code></pre>
  
  <p>about.html code: </p>
  
  <pre><code>{%extends 'base.html'%}
  {%block content%}
  
  &lt;h1&gt;About Page&lt;/h1&gt;
  {%endblock%}
  </code></pre>
  
  <p>base.html code: </p>
  
  <pre><code>&lt;header&gt; &lt;a href="home"&gt;Home&lt;/a&gt;|&lt;a href="about"&gt;About&lt;/a&gt; &lt;/header&gt;
  
  {%block content%} {%endblock%}
  </code></pre>
  
  <p>running python manage.py runserver base.html and about.html is working but when i click on home link it is showing the following:</p>
  
  <pre><code>Using the URLconf defined in pages_project.urls, Django tried these URL patterns, in this order:
  admin/
  about/ [name='about']
  [name='home']
  The current path, home, didn't match any of these.
  </code></pre>
  
  <p>but about link is working and base is showing the front face. <strong>this is my first problem.</strong></p>
  
  <p>after installing heroku and setting up the account. i tried to deposit all the files from git commit. when i write the following command:</p>
  
  <pre><code>heroku ps:scale web=1
  heroku open
  </code></pre>
  
  <p>it shows welcome to heroku page and the second line shows it's documentation page. but it is supposed to show the base.html page. i have used maxthon and mozilla browser for the localhost and used cmd as admin. <strong>this is my second problem</strong></p>
  
  <p>i stuck on this thing for last couple of days and still don't know how to fix it. i am new to django.</p>