title: Django redirect cannot resolve URL
body: <p>I have a pretty simple Django app with a form. After the form has been validated, it's supposed to redirect to the start page of the app. I get the following error:</p>
  
  <pre><code>django.urls.exceptions.NoReverseMatch: Reverse for 'overview' not found.
  'overview' is not a valid view function or pattern name.
  </code></pre>
  
  <p>The relevant path in urls.py is:</p>
  
  <pre><code>urlpatterns = [
      path('overview', views.overview, name='overview'),
  ...]
  </code></pre>
  
  <p>The view is in the same views.py as the redirecting view:</p>
  
  <pre><code>def overview(request):
      ...
      return render(request, 'feedback/overview.html', context)
  </code></pre>
  
  <p>The view with the redirect call looks like this: </p>
  
  <pre><code>def make_submission(request):
      if request.method == 'POST':
          form = FeedbackForm(request.POST)
          if form.is_valid():
              post = form.save(commit=False)
              post.approved = False
              post.save()
              return redirect('overview')
      else:
          form = FeedbackForm()
      return render(request, 'feedback/make_submission.html', {'form': form})
  </code></pre>
  
  <p>The form data are saved in the db, but the redirect fails. What am I doing wrong?</p>
  
  <p>Edit:</p>
  
  <p>Here's the main urls.py. Does it have anything to do with the fact that i'm usinf url() here instead of path()? I'm currently in the process of migrating the whole shebang to Django 2.1.</p>
  
  <pre><code>from django.conf.urls import include,url
  from django.contrib import admin
  
  
  urlpatterns = [
      url(r'^$', include('main.urls')),
      url(r'^main/', include('main.urls')),
      url(r'^feedback/', include('feedback.urls')),
      url(r'^admin/', admin.site.urls),
  ]
  </code></pre>