diff --git a/photo21/urls.py b/photo21/urls.py index 530068a..0538e1c 100644 --- a/photo21/urls.py +++ b/photo21/urls.py @@ -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), diff --git a/photologue_custom/urls.py b/photologue/urls.py similarity index 73% rename from photologue_custom/urls.py rename to photologue/urls.py index 037a354..4772067 100644 --- a/photologue_custom/urls.py +++ b/photologue/urls.py @@ -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//', TagDetail.as_view(), name='tag-detail'),