name='pl-photologue-root'), url(r'^gallery/(?P<slug>[\-\d\w]+)/$', GalleryDetailView.as_view() , name='pl-gallery'), url(r'^gallery/page/(?P<page>[0-9]+)/$', GalleryListView.as_view(), name='pl-gallery-list'), url(r'^photo/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[\-\d\w]+)/$', PhotoDateDetailView.as_view(), name='pl-photo-detail'), url(r'^photo/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', PhotoDayArchiveView.as_view(), name='pl-photo-archive-day'), url(r'^photo/(?P<year>\d{4})/(?P<month>[a-z]{3})/$', PhotoMonthArchiveView.as_view(), name='pl-photo-archive-month'), url(r'^photo/(?P<year>\d{4})/$', PhotoYearArchiveView.as_view(), name='pl-photo-archive-year'), url(r'^photo/$', PhotoArchiveIndexView.as_view(), name='pl-photo-archive'), url(r'^photo/(?P<slug>[\-\d\w]+)/$', PhotoDetailView.as_view(), name='pl-photo'), url(r'^photo/page/(?P<page>[0-9]+)/$', PhotoListView.as_view(), name='pl-photo-list'), )
from django.contrib.auth.decorators import permission_required from django.views.generic import RedirectView, TemplateView from django.urls import include, path, re_path, reverse_lazy from photologue.views import GalleryArchiveIndexView, PhotoDetailView from .models import GalleryCustom from .views import GalleryCustomDetailView photos_urls = ([ path('<slug:slug>', GalleryCustomDetailView.as_view(), name='pl-gallery'), path('photo/<slug:slug>', permission_required('photos.all_rights')(PhotoDetailView.as_view()), name='pl-photo'), ], 'photologue') extra_context_galleries = { 'galleries': GalleryCustom.objects.filter( gallery__is_public=True).order_by('gallery__date_added') } urlpatterns = [ path( '', TemplateView.as_view(template_name='photologue/galleries.html', extra_context=extra_context_galleries)), path('lightpainting', TemplateView.as_view(template_name='photologue/lightpainting.html')), path( 'about-lightpainting',
name='pl-gallery-archive-year'), url(r'^gallery/$', GalleryArchiveIndexView.as_view(), name='pl-gallery-archive'), url(r'^gallery/(?P<slug>[\-\d\w]+)/$', GalleryDetailView.as_view(), name='pl-gallery'), url(r'^gallery/page/(?P<page>[0-9]+)/$', GalleryListView.as_view(), name='pl-gallery-list'), url(r'^photo/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[\-\d\w]+)/$', PhotoDateDetailView.as_view(), name='pl-photo-detail'), url(r'^photo/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', PhotoDayArchiveView.as_view(), name='pl-photo-archive-day'), url(r'^photo/(?P<year>\d{4})/(?P<month>[a-z]{3})/$', PhotoMonthArchiveView.as_view(), name='pl-photo-archive-month'), url(r'^photo/(?P<year>\d{4})/$', PhotoYearArchiveView.as_view(), name='pl-photo-archive-year'), url(r'^photo/$', PhotoArchiveIndexView.as_view(), name='pl-photo-archive'), url(r'^photo/(?P<slug>[\-\d\w]+)/$', PhotoDetailView.as_view(), name='pl-photo'), url(r'^photo/page/(?P<page>[0-9]+)/$', PhotoListView.as_view(), name='pl-photo-list'), )
from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView, DetailView, ListView from photologue.views import PhotoListView, GalleryListView, GalleryDetailView, PhotoDetailView from .models import Event, Organization from .views import HomeView, SpeakersView, SpeakersDetailView, ActivitiesView, AttendeeDetailView, AttendeeBadgeView, AttendeePNGView, AttendeePDFView, AttendeeReceiptView, ContentView, event, OrganizationsView, FAQView, PresentationsView urlpatterns = [ # pics #url(r'^photologue/', include('photologue.urls', namespace='photologue')), url(r'^(?P<slug>[\w-]+)/gallery/$', GalleryDetailView.as_view(), name='gallery'), url(r'^(?P<eventslug>[\w-]+)/photo/(?P<slug>[\w-]+)$', PhotoDetailView.as_view(), name='photo'), url(r'^(?P<slug>[\w-]+)/photologue/', include('photologue.urls', namespace='photologue')), # home url(r'^$', HomeView.as_view(), name='home'), # content url(r'^(?P<slug>[\w-]+)/confirmation/$', ContentView.as_view(page='confirmation'), name='confirmation'), url(r'^confirmation/$', ContentView.as_view(page='confirmation'), name='confirmationmail'), url(r'^(?P<slug>[\w-]+)/about/$', ContentView.as_view(page='about'), name='about'), # FIXME: services? url(r'^(?P<slug>[\w-]+)/services/$', ContentView.as_view(page='services'), name='services'), url(r'^(?P<slug>[\w-]+)/contact/$', ContentView.as_view(page='contact'), name='contact'), # FIXME: necesitamos esto como flatpage? url(r'^(?P<slug>[\w-]+)/attendees/$', ContentView.as_view(page='attendees'), name='attendees'), url(r'^(?P<slug>[\w-]+)/schedule/$', ContentView.as_view(page='schedule'), name='schedule'),