from django.conf.urls import url, include
from . import views
from django.contrib.auth import views as auth_views

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^login/$', auth_views.login, name='login'),
    url(r'^logout/$', auth_views.logout, name='logout'),
    url(r'^', include('registration.backends.simple.urls')),
    url(r'^(?P<slug>[\w.@+-]+)/$', views.UserProfileView.as_view()),
]
