from django.conf.urls import patterns, url

from habits import views

urlpatterns = patterns('',
    # URL pattern for the UserHabitListView
    url(
        regex=r'^$',
        view=views.UserHabitListView.as_view(),
        name='list'
    ),
    # URL pattern for the UserHabitUpdateView
    url(
        regex=r'^(?P<pk>\d+)/update/$',
        view=views.UserHabitUpdateView.as_view(),
        name='update'
    ),
    # URL pattern for the UserHabitRedirectView
    url(
        regex=r'^~redirect/$',
        view=views.UserHabitRedirectView.as_view(),
        name='redirect'
    ),
)
