Move urls.py in photologue

This commit is contained in:
Alexandre Iooss 2022-01-30 10:21:05 +01:00
parent 27b1590a10
commit 2a0f41deac
2 changed files with 3 additions and 5 deletions

View file

@ -22,7 +22,7 @@ from .views import IndexView, MediaAccess
urlpatterns = [
path('', IndexView.as_view(), name='index'),
path('', include('photologue_custom.urls', namespace='photologue')),
path('', include('photologue.urls', namespace='photologue')),
path('accounts/', include('allauth.urls')),
path('i18n/', include('django.conf.urls.i18n')),
path('admin/', admin.site.urls),

View file

@ -1,10 +1,8 @@
from django.urls import path, re_path
from photologue.views import GalleryArchiveIndexView, GalleryYearArchiveView, PhotoDetailView
from photologue_custom.views import CustomGalleryDetailView, GalleryDownload, GalleryUpload, TagDetail
from .views import CustomGalleryDetailView, GalleryDownload, GalleryUpload, TagDetail
from .views import GalleryArchiveIndexView, GalleryYearArchiveView, PhotoDetailView
# Rather than using photologue default router, we redefine our own router
# with login and permission checks.
app_name = 'photologue'
urlpatterns = [
path('tag/<slug:slug>/', TagDetail.as_view(), name='tag-detail'),