title: How to fix NoReverseMatch on redirect
body: <p>Why am I  getting</p>
  
  <blockquote>
    <p>Reverse for 'explorer_js' not found. 'explorer_js' is not a valid
    view function or pattern name.</p>
  </blockquote>
  
  <p>when calling the <code>select</code> view below?:</p>
  
  <pre><code>def explorer_js(request):
      activities = Activity.objects.all()
      fill_column = lambda attr : [getattr(activity, attr) for activity in activities]
      d = {
          'ids' : fill_column('id'),
          'dates_added' : fill_column('date_added'),
          'numbers' : fill_column('number'),
          'athletes' : fill_column('athlete'),
          'start_dates' : fill_column('start_date'),
          'names' : fill_column('name'),
          'countries' : fill_column('country'),
          'links' : fill_column('link'),
          'segment_efforts' : fill_column('segment_efforts'),
          'distances' : fill_column('distance'),
          'average_speeds' : fill_column('average_speed')
      }
  
      context = {'d': d}
      return render(request, 'explorer_api/explorer_js.html', context)
  
  def select(request):
      """Filters explorer data and sends it to explorer again"""  
      return redirect('explorer_js')
  </code></pre>
  
  <p>The app's <code>urls.py</code>:</p>
  
  <pre><code>app_name = 'explorer_api'
  urlpatterns = [
      # Home page.
      path('', views.index, name='index'),
      path('explorer_js/', views.explorer_js, name='explorer_js'),
      path('select/', views.select, name='select'),
  ]
  </code></pre>