Esempio n. 1
0
from django.conf.urls import include, url

from content import url_scheme
from songs import views

urlpatterns = [
    url(r'^dodaj/$', views.AddSong.as_view(), name='add_song'),
    url(r'^(?P<slug>[-\w]+)/',
        include(
            url_scheme.view_edit_review_approve(
                'song', views.ViewSong, views.EditSong, views.ReviewSong,
                views.ApproveSong) + [
                    url(
                        r'^transpose/(?P<transposition>\d+)/$',
                        views.ViewSong.as_view(),
                        name='song-transposition'),
                    url(
                        r'^dodaj-adnotacje/$',
                        views.AddSongNote.as_view(),
                        name='add_song_note'),
                ])),
]
Esempio n. 2
0
from events import views

urlpatterns = [
    url(r'^$', views.EventIndex.as_view(),
        name='event_index'),
    url(r'^(?P<year>\d{4})/',
        include([
            url(r'^$',
                views.YearArchiveRedirect.as_view(),
                name='event_year'),
            url(r'^(?P<month>\d{2})/',
                include([
                    url(r'^$',
                        views.MonthArchiveRedirect.as_view(),
                        name='event_month_redirect'),
                    url(r'^(?P<day>\d{2})/(?P<slug>[-\w]+)/',
                        include(url_scheme.view_edit_review_approve(
                            'event', views.ViewEvent, views.EditEvent,
                            views.ReviewEvent, views.ApproveEvent))),
                ])),
        ])),
    url(r'^dodaj/$', views.AddEvent.as_view(),
        name='add_event'),
    url(r'^wykonawca/(?P<slug>[-\w]+)/$',
        views.ViewPerformerRedirect.as_view(),
        name='view_performer'),
    url(r'^(?P<slug>[-\w]+)/$',
        views.VenueDetailRedirect.as_view(),
        name='venue_detail'),
]
Esempio n. 3
0
from django.conf.urls import include, url

from articles import views
from content import url_scheme

urlpatterns = [
    url(r'^$', views.IndexView.as_view(), name='articles'),
    url(r'^dodaj/$', views.AddArticle.as_view(), name='add_article'),
    url(r'^(?P<slug>[-\w]+)/',
        include(
            url_scheme.view_edit_review_approve(
                'article', views.ViewArticle, views.EditArticle,
                views.ReviewArticle, views.ApproveArticle))),
]
Esempio n. 4
0
from django.conf.urls import include, url

from blog import views
from content import url_scheme

urlpatterns = [
    url(r'^$', views.PostIndex.as_view(), name='post_index'), url(
        r'^post/(?P<post_id>\d+)/$', views.obsolete_post),
    url(r'^dodaj/$', views.AddPost.as_view(), name='add_post'), url(
        r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/',
        include(
            url_scheme.view_edit_review_approve(
                'post', views.ViewPost, views.EditPost, views.ReviewPost,
                views.ApprovePost)))
]
Esempio n. 5
0
from django.conf.urls import include, url

from articles import views
from content import url_scheme

urlpatterns = [
    url(r'^$', views.IndexView.as_view(),
        name='articles'),
    url(r'^dodaj/$', views.AddArticle.as_view(),
        name='add_article'),
    url(r'^(?P<slug>[-\w]+)/', include(url_scheme.view_edit_review_approve(
        'article', views.ViewArticle, views.EditArticle, views.ReviewArticle,
        views.ApproveArticle))),
]