-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
33 lines (31 loc) · 897 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from django.conf.urls import url
from . import conf as photo_gallery_conf
from .views import album as album_views
from .views import photo as photo_views
urlpatterns = [
url(
r'^$',
album_views.List.as_view(),
name=photo_gallery_conf.LIST_ALBUM_URL_NAME
),
url(
r'^create/$',
album_views.Create.as_view(),
name=photo_gallery_conf.CREATE_ALBUM_URL_NAME
),
url(
r'^(?P<album_slug>[\w-]+)/$',
photo_views.List.as_view(),
name=photo_gallery_conf.LIST_PHOTO_URL_NAME
),
url(
r'^(?P<album_slug>[\w-]+)/create/$',
photo_views.Create.as_view(),
name=photo_gallery_conf.CREATE_PHOTO_URL_NAME
),
url(
r'^(?P<album_slug>[\w-]+)/create-multiple/$',
photo_views.CreateMultiple.as_view(),
name=photo_gallery_conf.CREATE_MULTIPLE_PHOTO_URL_NAME
),
]