from django.conf.urls import url
from . import views
from django.contrib.auth.views import login, logout, logout_then_login

urlpatterns = [

	url(r'^clientes/nuevo/$', views.CreateCliente.as_view(), name="createCliente"),
	url(r"^clientes/(?P<pk>\d+)/$", views.DetailCliente.as_view(), name="detailCliente"),
 	url(r'^clientes', views.ListClientes.as_view(),name="listClientes"),

 	url(r'^perfil/$', views.Bienvenido.as_view(), name="bienvenido"),
 	url(r'^$', views.login_user, name='login'),
 	url(r'^logout/$', logout, name="logout"),
]