X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/5d2c22628bbba4eb7ea12a1f5e11bdcc6c866e03..0da449be342d2024f3c87a065ed30da80c96bfa5:/sommitrealweird/photo/urls.py diff --git a/sommitrealweird/photo/urls.py b/sommitrealweird/photo/urls.py index dbea64f..3e9d28c 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 photo.models import Album +from photo.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()), ]