title: Adding paths in Django to create more views
body: <p>I am following the <a href="https://docs.djangoproject.com/en/2.0/intro/tutorial03/" rel="nofollow noreferrer">tutorial</a> on the Django website. I try and replicate this:</p>
  
  <p><a href="https://i.stack.imgur.com/7KwUO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7KwUO.png" alt="enter image description here"></a></p>
  
  <p>My code is as follows:</p>
  
  <p>views.py</p>
  
  <pre><code># -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from django.shortcuts import render
  
  # Create your views here.
  from django.http import HttpResponse
  
  
  def index(request):
      return HttpResponse("Hello, world. You're at the polls index.")
  
  def detail(request, film_id):
      return HttpResponse("You're looking at film %s." % film_id)
  
  def results(request, film_id):
      response = "You're looking at the results of film %s."
      return HttpResponse(response % question_id)
  
  def vote(request, film_id):
      return HttpResponse("You're commenting on film %s." % film_id)
  </code></pre>
  
  <p>films/urls.py</p>
  
  <pre><code>from django.conf.urls import url
  from django.urls import path
  from . import views
  
  urlpatterns = [
      # url(r'^$', views.index, name='index'),
      # ex: /polls/
      path('', views.index, name='index'),
      # ex: /films/5/
      path('&lt;int:film_id&gt;/', views.detail, name='detail'),
      # ex: /films/5/results/
      path('&lt;int:film_id&gt;/results/', views.results, name='results'),
      # ex: /films/5/vote/
      path('&lt;int:film_id&gt;/vote/', views.vote, name='vote'),
  ]
  </code></pre>
  
  <p>With this I am getting ERR_CONNECTION_REFUSED. If I comment out all the paths leaving only the index url, and also comment out <code>from django.urls import path</code> a page displays, but that is where I was at before trying to add more views. </p>