from django.conf.urls import patterns, url

__author__ = 'swhite'

urlpatterns = patterns('authenticate.views',
    url(r'^login/?$', 'login_view', name="login"),
    url(r'^logout/?$', 'logout_view', name="logout"),
    url(r'^login_failed/?$', 'login_failed', name="login_failed"),
)

from django.conf.urls import url

__author__ = 'swhite'

urlpatterns = [
    url(r'^login/?$', 'authenticate.views.login_view', name="login"),
    url(r'^logout/?$', 'authenticate.views.logout_view', name="logout"),
    url(r'^login_failed/?$', 'authenticate.views.login_failed', name="login_failed")
]

Update urls.py