Split views & remove converters
This commit is contained in:
parent
a3264db994
commit
52dc390781
7 changed files with 281 additions and 266 deletions
|
@ -1,13 +1,13 @@
|
|||
from django.urls import path, re_path, register_converter
|
||||
from django.urls import path, re_path
|
||||
|
||||
from . import converters, views
|
||||
from . import views
|
||||
|
||||
app_name = 'gallery'
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.Main.as_view(), name='main_url'),
|
||||
path('about/', views.About.as_view(), name='about_url'),
|
||||
path('search/', views.Search.as_view(), name='search_url'),
|
||||
path('search/', views.AlbumSearch.as_view(), name='search_url'),
|
||||
path('photostream/', views.PhotosList.as_view(), name='photos_url'),
|
||||
re_path(r'^like/(?P<album_slug>.+)/(?P<photo_slug>[a-zA-Z0-9_-]{1,50}\.[a-zA-Z]{3,4})/?$', views.PhotoLike.as_view(), name='photo_like_url'),
|
||||
re_path(r'^slideshow/(?P<album_slug>.+)/(?P<photo_slug>[a-zA-Z0-9_-]{1,50}\.[a-zA-Z]{3,4})/?$', views.PhotoSlideshow.as_view(), name='photo_slideshow_url'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue