from django.conf.urls import patterns, include, url
from idios.views import ProfileUpdateView

from profiles.forms import ProfileForm
from profiles.views import ProfileDetailView, ProfileListView


urlpatterns = patterns("",
    url(r"^profile/(?P<pk>\d+)/(?P<slug>[\w\._-]*)",
        ProfileDetailView.as_view(), name="profile_detail"),
    url(r"^edit/$", ProfileUpdateView.as_view(
        form_class=ProfileForm, template_name="profiles/profile_edit.html"),
        name="profile_edit"),
    url(r"^$", ProfileListView.as_view(), name="profile_list"),
    url(r"^all/$", ProfileListView.as_view(all_profiles=True),
        name="profile_list_all"),
)
