from django.conf.urls import url
from django.contrib.auth.views import login
from .views import profile
from django.shortcuts import redirect


urlpatterns = [
    url(r'^login/$', login, name='login', kwargs={
        'template_name': 'accounts/login.html',
    }),
    url(r'^profile/$', profile, name='profile'),
    url(r'^$', lambda request: redirect('shop:index'), name='root'),
]