Move urls.py in photologue
This commit is contained in:
parent
27b1590a10
commit
2a0f41deac
2 changed files with 3 additions and 5 deletions
|
|
@ -22,7 +22,7 @@ from .views import IndexView, MediaAccess
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', IndexView.as_view(), name='index'),
|
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('accounts/', include('allauth.urls')),
|
||||||
path('i18n/', include('django.conf.urls.i18n')),
|
path('i18n/', include('django.conf.urls.i18n')),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
from django.urls import path, re_path
|
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'
|
app_name = 'photologue'
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('tag/<slug:slug>/', TagDetail.as_view(), name='tag-detail'),
|
path('tag/<slug:slug>/', TagDetail.as_view(), name='tag-detail'),
|
||||||
Loading…
Add table
Add a link
Reference in a new issue