from django.conf.urls.defaults import *

urlpatterns = patterns('',    
    # all photos or latest photos
    url(r'^$', 'photos.views.photos', name="photos"),
    # a photos details
    url(r'^details/(?P<id>\d+)/$', 'photos.views.details', name="photo_details"),
    # upload photos
    url(r'^upload/$', 'photos.views.upload', name="photo_upload"),
    # your photos
    url(r'^yourphotos/$', 'photos.views.yourphotos', name='photos_yours'),
    # a members photos
    url(r'^member/(?P<username>[\w]+)/$', 'photos.views.memberphotos', name='photos_member'),
    #destory photo
    url(r'^destroy/(\d+)/$', 'photos.views.destroy', name='photo_destroy'),
    #edit photo
    url(r'^edit/(\d+)/$', 'photos.views.edit', name='photo_edit'),
)