Ejemplo n.º 1
0
urlpatterns = patterns('',

    url(r'^gallery/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[\-\d\w]+)/$',
        GalleryDateDetailView.as_view(),
        name='pl-gallery-detail'),
    url(r'^gallery/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$',
        GalleryDayArchiveView.as_view(),
        name='pl-gallery-archive-day'),
    url(r'^gallery/(?P<year>\d{4})/(?P<month>[a-z]{3})/$',
        GalleryMonthArchiveView.as_view(),
        name='pl-gallery-archive-month'),
    url(r'^gallery/(?P<year>\d{4})/$',
        GalleryYearArchiveView.as_view(),
        name='pl-gallery-archive-year'),
    url(r'^gallery/$',
        GalleryListView.as_view(),
        name='pl-gallery-archive'),
    url(r'^$',
        RedirectView.as_view(url=reverse_lazy('pl-gallery-archive')),
        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(),
Ejemplo n.º 2
0
     GalleryYearArchiveView.as_view(),
     name='pl-gallery-archive-year'),
 url(r'^gallery/$',
     GalleryArchiveIndexView.as_view(),
     name='pl-gallery-archive'),
 url(r'^gallery/(?P<gallery_id>\d+)/gallery_edit/$',
     'photologue.views.gallery_edit',
     name='pl-gallery-edit'),
 url(r'^gallery/(?P<gallery_id>\d+)/upload_photo/$',
     'photologue.views.upload_photo',
     name='upload_photo'),
 url(r'^gallery/(?P<pk>[\-\d\w]+)/$',
     'photologue.views.gallery_view',
     name='pl-gallery'),
 url(r'^gallery/page/(?P<page>[0-9]+)/$',
     GalleryListView.as_view(),
     name='pl-gallery-list'),
 url(r'^photo/(?P<photo_id>\d+)/edit_photo/$',
     'photologue.views.edit_photo'),
 url(r'^photo/(?P<photo_id>\d+)/delete_photo/$',
     'photologue.views.delete_photo',
     name='delete_photo'),
 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'),
Ejemplo n.º 3
0
"""
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include

from photologue.views import (GalleryDetailView, PhotoDetailView,
                              PhotoListView, GalleryListView)
from .views import index, live, search

urlpatterns = [
    path('', index, name="index"),
    path('live', live, name="live"),
    path('search', search, name="search"),
    path('admin/', admin.site.urls),
    path('gallerylist/', GalleryListView.as_view(), name='gallery-list'),
    path('photologue/', include('photologue.urls', namespace='photologue')),
    path('photolist/',
         PhotoListView.as_view(paginate_by=54),
         name='photo-list'),
    path('photologue/photo/<slug>/',
         PhotoDetailView.as_view(),
         name='pl-photo'),
    path('photologue/gallery/<slug>/',
         GalleryDetailView.as_view(),
         name='pl-gallery'),
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Ejemplo n.º 4
0
        name='pl-gallery-detail'),
    url(r'^gallery/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$',
        GalleryDayArchiveView.as_view(),
        name='pl-gallery-archive-day'),
    url(r'^gallery/(?P<year>\d{4})/(?P<month>[a-z]{3})/$',
        GalleryMonthArchiveView.as_view(),
        name='pl-gallery-archive-month'),
    url(r'^gallery/(?P<year>\d{4})/$',
        GalleryYearArchiveView.as_view(),
        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(),
Ejemplo n.º 5
0
        name='pl-gallery-detail'),
    url(r'^galeria/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$',
        GalleryDayArchiveView.as_view(),
        name='pl-gallery-archive-day'),
    url(r'^galeria/(?P<year>\d{4})/(?P<month>[a-z]{3})/$',
        GalleryMonthArchiveView.as_view(),
        name='pl-gallery-archive-month'),
    url(r'^galeria/(?P<year>\d{4})/$',
        GalleryYearArchiveView.as_view(),
        name='pl-gallery-archive-year'),
    url(r'^galeria/$', 
        GalleryArchiveIndexView.as_view(),
        name='pl-gallery-archive'),
                        
    url(r'^galeria/(?P<slug>[\-\d\w]+)/$', GalleryDetailView.as_view() , name='pl-gallery'),
    url(r'^galeria/strona/(?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(),
Ejemplo n.º 6
0
from photologue.views import GalleryListView

from django.conf.urls.static import static

sitemaps = {
    'news': NewsSitemap(),
    'pages': PagesSitemap(),
    'fighters': FightersSitemap(),
    'eventstop': EventsTopSitemap(),
    'eventsarchive': EventsArchiveSitemap(),
}

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^news/', include('news.urls')),
    url(r'^pages/', include('pages.urls')),
    url(r'^events/', include('events.urls')),
    url(r'^galleries/',
        GalleryListView.as_view(paginate_by=10),
        name='galleries'),
    url(r'^video/', include('videos.urls')),
    url(r'^', include('news.urls')),

    #
    url(r'^redactor/', include('redactor.urls')),
    url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps}, name='sitemap'),
    url(r'^chaining/', include('smart_selects.urls')),
    url(r'^gallery/', include('photologue.urls', namespace='photologue')),
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Ejemplo n.º 7
0
from django.conf.urls import *

from photologue.views import GalleryListView

urlpatterns = patterns('',
                       url(r'^gallery/page/(?P<page>[0-9]+)/$',
                           GalleryListView.as_view(paginate_by=5), name='pl-gallery-list'),
                       )
Ejemplo n.º 8
0
from django.conf.urls import patterns, include, url
from django.views.generic import CreateView
from photologue.models import Photo
from photologue.views import GalleryListView
from .views import AddPhotoView, AddGalleryView

urlpatterns = patterns('bootcamp.photos.views',
    #url(r'^$', 'photos', name='photos'),
    url(r'^$', GalleryListView.as_view(paginate_by=5), name='photos'),
    url(r'^add/$', AddPhotoView.as_view() , name='add'),
    url(r'^post/$', 'post', name='post'),
    url(r'^addGallery/$', AddGalleryView.as_view() , name='addGallery'),
    url(r'^', include('photologue.urls', namespace='photologue'), name='photos'),
    #url(r'^(\d+)/$', 'photos', name='photos'),
)
Ejemplo n.º 9
0
from django.conf.urls import *
from .views import PhotoJSONListView
from photologue.views import GalleryListView
from django.views.generic import TemplateView

urlpatterns = patterns('',

						url(r'^gallerylist/$', GalleryListView.as_view(), name='photogallery-gallery-list'),
						url(r'^photolist/$', PhotoJSONListView.as_view(), name='photogallery-photo-json-list'),
                       )
Ejemplo n.º 10
0
from photologue.views import GalleryListView
from photologue.views import PhotoListView
from photologue.sitemaps import GallerySitemap, PhotoSitemap
from django.contrib.sitemaps.views import sitemap

###########################################

sitemaps = {
    "photologue_galleries": GallerySitemap,
    "photologue_photos": PhotoSitemap
}

urlpatterns = [
    path(
        "sitemap.xml",
        sitemap,
        {"sitemaps": sitemaps},
        name="django.contrib.sitemaps.views.sitemap",
    ),
    path("photologue", include("photologue.urls", namespace="photologue")),
    path("photolist", PhotoListView.as_view(), name="photo"),
    path("gallerylist", GalleryListView.as_view(paginate_by=5),
         name="gallery"),
    path("accounts/", include("allauth.urls")),
    path("admin/", admin.site.urls),
    path("api/v1/", include("apis.urls")),
    path("", include("users.urls")),
    path("asset/", include("asset.urls")),
    path("__debug__", include(debug_toolbar.urls)),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Ejemplo n.º 11
0
urlpatterns = patterns(
    '',
    url(r'^gallery/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[\-\d\w]+)/$',
        GalleryDateDetailView.as_view(),
        name='pl-gallery-detail'),
    url(r'^gallery/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$',
        GalleryDayArchiveView.as_view(),
        name='pl-gallery-archive-day'),
    url(r'^gallery/(?P<year>\d{4})/(?P<month>[a-z]{3})/$',
        GalleryMonthArchiveView.as_view(),
        name='pl-gallery-archive-month'),
    url(r'^gallery/(?P<year>\d{4})/$',
        GalleryYearArchiveView.as_view(),
        name='pl-gallery-archive-year'),
    url(r'^gallery/$', GalleryListView.as_view(), name='pl-gallery-archive'),
    url(r'^$',
        RedirectView.as_view(url=reverse_lazy('pl-gallery-archive')),
        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'),