from django.contrib import auth
url('^admin/login/', auth.views.login, kwargs={'template_name':
    'admin/login.html'}, name='login'),
How to re-use Django Admin login form from custom LoginRequired middleware