title: @login_required causing issues
body: <p>Good day, I have the following views:</p>
  
  <pre><code>class BookList(RequireLoginMixin, generic.ListView):
      model = Book
      template_name = 'book/list.html'
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@login_required(login_url='/login/')
  def fetch_book_author(request):
        context = {"context": Book.objects.all()}
        return render(request, 'book/pages/authors.html', context)
  
  class RequireLoginMixin(object):
   @classmethod
   def as_view(cls, **initkwargs):
      view = super(RequireLoginMixin, cls).as_view(**initkwargs)
      return login_required(view)
  </code></pre>
  
  <p>I'm trying to deny access to all my pages except the home page. Any page that Im trying to access after applying the decorator or mixin on, is giving me the following error:</p>
  
  <pre><code>^__debug__/
  ^admin/
  ^mwf/
  The current URL, accounts/login/, didn't match any of these.
  </code></pre>
  
  <p>Here's my urls' configuration:</p>
  
  <pre><code>app_name = 'bookApp'
  urlpatterns = [
      url(r'^$', HomeView.as_view(), name='home'),
      url(r'^about/$', AboutView.as_view(), name='about'),
      url(r'^welcome/$', WelcomeView.as_view(), name='welcome'),
      url(r'^fetch-books/$', fetch_book_author, name='fetch'),
      url(r'^books/$', BookList.as_view(), name='books'),
      url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
      url(r'^logout/$', 'django.contrib.auth.views.logout', kwargs={'next_page': '/mwf/'}),
      url(r'^signup/$', UserRegistrationView.as_view(), name='signup'),
      url('^', include('django.contrib.auth.urls')),
  ]
  </code></pre>
  
  <p>and in my settings, I have:</p>
  
  <pre><code>LOGIN_REDIRECT_URL = 'login/'
  </code></pre>
  
  <p>Do not know what's wrong in here.
  Will really appreciate any help</p>