from django.conf import settings from django.conf.urls import include, url from django.contrib.auth import views as auth_views from . import views urlpatterns = [ url(r'^profile/$', views.profile, name='profile'), url(r'accounts/login/', views.EmailLoginView.as_view(), {'extra_context': {'buttons': [views.RESET_PASSWORD_BUTTON]}}, name='login'), #url(r'^login/$', auth_views.login, {'extra_context': {'buttons': [views.RESET_PASSWORD_BUTTON]}}, name='login'), url(r'^logout/$', auth_views.logout, {'next_page': settings.LOGOUT_REDIRECT_URL}, name='logout'), #url(r'^avatar/', include('avatar.urls')), url(r'', include('django.contrib.auth.urls')), #url(r'', include('registration.backends.default.urls')), ]