title: Django redirect back to admin login page using reverse() not working
body: <p>I'm new to <code>Django version 2.1</code>, In Middleware where if <code>user_logged</code> session is empty i'm redirecting it to <code>admin</code> url</p>
  
  <p>I'm getting <code>NoReverseMatch at /demo/list
  Reverse for '../admin/' not found. '../admin/' is not a valid view function or pattern name.</code> error.</p>
  
  <p>project urls.py</p>
  
  <pre><code>    from django.contrib import admin
  from django.urls import path, include
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('demo/', include('demo.urls')),
  ]
  </code></pre>
  
  <p>setting.py </p>
  
  <pre><code>    MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'demosite.middleware.LoginRequiredMiddleWare',
  ]
  </code></pre>
  
  <p>project middleware.py</p>
  
  <pre><code>    import re
  from django.shortcuts import redirect
  from django.conf import settings
  from django.urls import reverse
  
  class LoginRequiredMiddleWare:
      def __init__(self, get_response):
          self.get_response = get_response
  
      def __call__(self, request):
          response = self.get_response(request)
  
          return response
  
      def process_view(self, request, view_func, view_args, view_kwargs):
          print(request.session.get('user_logged', None));
  
          if not request.session.get('user_logged', None):
              return redirect(reverse('admin/'))
  </code></pre>
  
  <p>app urls.py</p>
  
  <pre><code>    from django.urls import path, include
  from demo import views
  
  urlpatterns = [
      path('list', views.demoView.listData, name='list-data')
  ]
  </code></pre>
  
  <p>FOR REFERENCE BELOW IS SCREEN SHOT OF PROJECT DIRECTORY STRUCTURE
  <a href="https://i.stack.imgur.com/n5Rei.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n5Rei.png" alt="SCREEN SHOT OF PROJECT DIRECTORY STRUCTURE"></a></p>
  
  <h2>THANKS IN ADVANCE</h2>