from django.conf.urls import url, patterns
from .views import GroupList, GroupCreate, GroupUpdate
from .views import login, logout, loginajax_view, login_view, logout_view, change_password_view

urlpatterns = patterns ('',
	url(r'^loginajax/$', loginajax_view),
    # url(r'^login/$', 'django.contrib.auth.views.login'),
    # url(r'^login/$', 'login_view'),
    url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login'),
    url(r'^logout/$', logout_view , name='logoutview'), 
    url(r'^password_change/$', change_password_view , name='password_change'),
    url(r'^group/add/$', GroupCreate.as_view(), name='group_create'),
    url(r'^group/$', GroupList.as_view(), name='group_list'),
    url(r'^group/(?P<pk>\d+)/$', GroupUpdate.as_view(), name='group_update'),
)