Source

dotim / dotim / gallery / urls.py

Full commit
1
2
3
4
5
6
7
8
9
from django.conf.urls import patterns, url

from . import views

urlpatterns = patterns('',
    url(r'^$', views.albums, name='albums'),
    url(r'^(?P<slug>[\w_-]+)/$', views.album, name='album'),
    url(r'^(?P<slug>[\w_-]+)/(?P<pk>\d+)/$', views.picture, name='picture'),
)