X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/5d2c22628bbba4eb7ea12a1f5e11bdcc6c866e03..6bec9dfd9d2ea3cc93ac1b5caab895140416c98c:/sommitrealweird/photo/urls.py 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()), ]