X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/5d2c22628bbba4eb7ea12a1f5e11bdcc6c866e03..79a1cfe913b35fecb0c21701fe63e256ae4184f9:/sommitrealweird/photo/urls.py?ds=sidebyside diff --git a/sommitrealweird/photo/urls.py b/sommitrealweird/photo/urls.py index dbea64f..d5666e5 100644 --- a/sommitrealweird/photo/urls.py +++ b/sommitrealweird/photo/urls.py @@ -1,9 +1,9 @@ from django.conf.urls import url from models import Album -from views import AlbumListView +from views import AlbumListView, PhotoListView, PhotoView urlpatterns = [ url(r'^$', AlbumListView.as_view()), - url(r'^(?P[^/]*)/$', 'photo.views.album_view'), - url(r'^(?P[^/]*)/(?P[0-9]+)/$', 'photo.views.photo_view'), + url(r'^(?P[^/]*)/$', PhotoListView.as_view()), + url(r'^(?P[^/]*)/(?P[0-9]+)/$', PhotoView.as_view()), ]