Пример #1
0
"""Urls for the Zinnia authors"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.authors import AuthorList
from zinnia.views.authors import AuthorDetail


urlpatterns = patterns(
    '',
    url(r'^$',
        AuthorList.as_view(),
        name='author_list'),
    url(_(r'^(?P<slug>[.+-@\w]+)/page/(?P<page>\d+)/$'),
        AuthorDetail.as_view(),
        name='author_detail_paginated'),
    url(r'^(?P<slug>[.+-@\w]+)/$',
        AuthorDetail.as_view(),
        name='author_detail'),
)
Пример #2
0
"""Urls for the Zinnia archives"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.archives import EntryDay
from zinnia.views.archives import EntryWeek
from zinnia.views.archives import EntryYear
from zinnia.views.archives import EntryMonth
from zinnia.views.archives import EntryToday
from zinnia.views.archives import EntryIndex

index_patterns = [
    url(r'^$', EntryIndex.as_view(), name='zinnia_entry_archive_index'),
    url(_(r'^page/(?P<page>\d+)/$'),
        EntryIndex.as_view(),
        name='zinnia_entry_archive_index_paginated')
]

year_patterns = [
    url(r'^(?P<year>\d{4})/$',
        EntryYear.as_view(),
        name='zinnia_entry_archive_year'),
    url(_(r'^(?P<year>\d{4})/page/(?P<page>\d+)/$'),
        EntryYear.as_view(),
        name='zinnia_entry_archive_year_paginated'),
]

week_patterns = [
    url(_(r'^(?P<year>\d{4})/week/(?P<week>\d+)/$'),
        EntryWeek.as_view(),
Пример #3
0
"""Urls for the Zinnia tags"""
from django.urls import path

from zinnia.urls import _
from zinnia.views.tags import TagDetail
from zinnia.views.tags import TagList

urlpatterns = [
    path('', TagList.as_view(), name='tag_list'),
    path('<tag:tag>/', TagDetail.as_view(), name='tag_detail'),
    path(_('<tag:tag>/page/<int:page>/'),
         TagDetail.as_view(),
         name='tag_detail_paginated'),
]
Пример #4
0
"""Url for the Zinnia quick entry view"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.quick_entry import QuickEntry

urlpatterns = patterns(
    '', url(_(r'^quick-entry/$'),
            QuickEntry.as_view(),
            name='entry_quick_post'))
Пример #5
0
"""Urls for the Zinnia authors"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.authors import AuthorList
from zinnia.views.authors import AuthorDetail

urlpatterns = patterns(
    '',
    url(r'^$', AuthorList.as_view(), name='zinnia_author_list'),
    url(_(r'^(?P<username>[.+-@\w]+)/page/(?P<page>\d+)/$'),
        AuthorDetail.as_view(),
        name='zinnia_author_detail_paginated'),
    url(r'^(?P<username>[.+-@\w]+)/$',
        AuthorDetail.as_view(),
        name='zinnia_author_detail'),
)
Пример #6
0
"""Url for the Zinnia quick entry view"""
from django.conf.urls import url

from zinnia.urls import _
from zinnia.views.quick_entry import QuickEntry

urlpatterns = [
    url(_(r'^quick-entry/$'), QuickEntry.as_view(), name='entry_quick_post'),
]
Пример #7
0
"""Urls for the Zinnia categories"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.categories import CategoryList
from zinnia.views.categories import CategoryDetail


urlpatterns = patterns(
    '',
    url(r'^$',
        CategoryList.as_view(),
        name='zinnia_category_list'),
    url(_(r'^(?P<path>[-\/\w]+)/page/(?P<page>\d+)/$'),
        CategoryDetail.as_view(),
        name='zinnia_category_detail_paginated'),
    url(r'^(?P<path>[-\/\w]+)/$',
        CategoryDetail.as_view(),
        name='zinnia_category_detail'),
)
Пример #8
0
"""Urls for the Zinnia archives"""
from django.conf.urls import url
from django.conf.urls import include
from django.conf.urls import patterns

from zinnia.urls import _
from developer_portal.blog.views import MultiLangEntryDay
from developer_portal.blog.views import MultiLangEntryWeek
from developer_portal.blog.views import MultiLangEntryYear
from developer_portal.blog.views import MultiLangEntryMonth
from developer_portal.blog.views import MultiLangEntryToday
from developer_portal.blog.views import MultiLangEntryIndex

urlpatterns = patterns(
    '',
    url(_(r'^feeds/'), include('zinnia.urls.feeds')),
    url(_(r'^tags/'), include('zinnia.urls.tags')),
    url(_(r'^authors/'), include('zinnia.urls.authors')),
    url(_(r'^categories/'), include('zinnia.urls.categories')),
    url(_(r'^search/'), include('zinnia.urls.search')),
    url(_(r'^random/'), include('zinnia.urls.random')),
    url(_(r'^sitemap/'), include('zinnia.urls.sitemap')),
    url(_(r'^trackback/'), include('zinnia.urls.trackback')),
    url(_(r'^comments/'), include('zinnia.urls.comments')),
    url(r'^', include('zinnia.urls.entries')),
    url(r'^$', MultiLangEntryIndex.as_view(), name='entry_archive_index'),
    url(_(r'^page/(?P<page>\d+)/$'),
        MultiLangEntryIndex.as_view(),
        name='entry_archive_index_paginated'),
    url(r'^(?P<year>\d{4})/$',
        MultiLangEntryYear.as_view(),
Пример #9
0
"""Url for the Zinnia quick entry view"""
from django.urls import path

from zinnia.urls import _
from zinnia.views.quick_entry import QuickEntry

urlpatterns = [
    path(_('quick-entry/'), QuickEntry.as_view(), name='entry_quick_post'),
]
Пример #10
0
"""Urls for the Zinnia comments"""
from django.urls import path

from zinnia.urls import _
from zinnia.views.comments import CommentSuccess


urlpatterns = [
    path(_('success/'),
        CommentSuccess.as_view(),
        name='comment_success'),
]
Пример #11
0
from zinnia.feeds import LatestEntries
from zinnia.feeds import TagEntries
from zinnia.feeds import AuthorEntries
from zinnia.feeds import CategoryEntries
from zinnia.feeds import SearchEntries
from zinnia.feeds import EntryComments
from zinnia.feeds import EntryPingbacks
from zinnia.feeds import EntryTrackbacks
from zinnia.feeds import EntryDiscussions
from zinnia.feeds import LatestDiscussions


urlpatterns = patterns(
    "",
    url(r"^$", LatestEntries(), name="entry_latest_feed"),
    url(_(r"^discussions/$"), LatestDiscussions(), name="discussion_latest_feed"),
    url(_(r"^search/$"), SearchEntries(), name="entry_search_feed"),
    url(_(r"^tags/(?P<tag>[^/]+(?u))/$"), TagEntries(), name="tag_feed"),
    url(_(r"^authors/(?P<username>[.+-@\w]+)/$"), AuthorEntries(), name="author_feed"),
    url(_(r"^categories/(?P<path>[-\/\w]+)/$"), CategoryEntries(), name="category_feed"),
    url(
        _(r"^discussions/(?P<year>\d{4})/(?P<month>\d{2})/" "(?P<day>\d{2})/(?P<slug>[-\w]+)/$"),
        EntryDiscussions(),
        name="entry_discussion_feed",
    ),
    url(
        _(r"^comments/(?P<year>\d{4})/(?P<month>\d{2})/" "(?P<day>\d{2})/(?P<slug>[-\w]+)/$"),
        EntryComments(),
        name="entry_comment_feed",
    ),
    url(
Пример #12
0
"""Urls for the Zinnia tags"""
from django.conf.urls import url

from zinnia.urls import _
from zinnia.views.tags import TagList
from zinnia.views.tags import TagDetail


urlpatterns = [
    url(r"^$", TagList.as_view(), name="tag_list"),
    url(r"^(?P<tag>[^/]+(?u))/$", TagDetail.as_view(), name="tag_detail"),
    url(_(r"^(?P<tag>[^/]+(?u))/page/(?P<page>\d+)/$"), TagDetail.as_view(), name="tag_detail_paginated"),
]
Пример #13
0
from zinnia.feeds import AuthorEntries
from zinnia.feeds import CategoryEntries
from zinnia.feeds import EntryComments
from zinnia.feeds import EntryDiscussions
from zinnia.feeds import EntryPingbacks
from zinnia.feeds import EntryTrackbacks
from zinnia.feeds import LastDiscussions
from zinnia.feeds import LastEntries
from zinnia.feeds import SearchEntries
from zinnia.feeds import TagEntries
from zinnia.urls import _

urlpatterns = [
    path('', LastEntries(), name='entry_feed'),
    path(_('discussions/'), LastDiscussions(), name='discussion_feed'),
    path(_('search/'), SearchEntries(), name='entry_search_feed'),
    path(_('tags/<tag:tag>/'), TagEntries(), name='tag_feed'),
    path(_('authors/<username:username>/'),
         AuthorEntries(),
         name='author_feed'),
    path(_('categories/<path:path>/'), CategoryEntries(),
         name='category_feed'),
    path(_('discussions/<yyyy:year>/<mm:month>/<dd:day>/<slug:slug>/'),
         EntryDiscussions(),
         name='entry_discussion_feed'),
    path(_('comments/<yyyy:year>/<mm:month>/<dd:day>/<slug:slug>/'),
         EntryComments(),
         name='entry_comment_feed'),
    path(_('pingbacks/<yyyy:year>/<mm:month>/<dd:day>/<slug:slug>/'),
         EntryPingbacks(),
Пример #14
0
"""Urls for the Zinnia comments"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.comments import CommentSuccess


urlpatterns = patterns(
    '',
    url(_(r'^success/$'),CommentSuccess.as_view(),name='zinnia_comment_success')
)
Пример #15
0
"""Urls for the Zinnia authors"""
from django.urls import path

from zinnia.urls import _
from zinnia.views.authors import AuthorDetail
from zinnia.views.authors import AuthorList

urlpatterns = [
    path('', AuthorList.as_view(), name='author_list'),
    path(_('<username:username>/page/<int:page>/'),
         AuthorDetail.as_view(),
         name='author_detail_paginated'),
    path('<username:username>/', AuthorDetail.as_view(), name='author_detail'),
]
Пример #16
0
"""Urls for the Zinnia comments"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.comments import CommentSuccess

urlpatterns = patterns(
    '', url(_(r'^success/$'), CommentSuccess.as_view(),
            name='comment_success'))
Пример #17
0
from zinnia.urls import _

from zinnia.views.archives import EntryDay
from zinnia.views.archives import EntryWeek
from zinnia.views.archives import EntryYear
from zinnia.views.archives import EntryMonth
from zinnia.views.archives import EntryToday
from zinnia.views.archives import EntryIndex


index_patterns = [
    url(r'^$',
        EntryIndex.as_view(),
        name='zinnia_entry_archive_index'),
    url(_(r'^page/(?P<page>\d+)/$'),
        EntryIndex.as_view(),
        name='zinnia_entry_archive_index_paginated')
]

year_patterns = [
    url(r'^(?P<year>\d{4})/$',
        EntryYear.as_view(),
        name='zinnia_entry_archive_year'),
    url(_(r'^(?P<year>\d{4})/page/(?P<page>\d+)/$'),
        EntryYear.as_view(),
        name='zinnia_entry_archive_year_paginated'),
]

week_patterns = [
    url(_(r'^(?P<year>\d{4})/week/(?P<week>\d+)/$'),
Пример #18
0
from zinnia.urls import _
from zinnia.feeds import LastEntries
from zinnia.feeds import TagEntries
from zinnia.feeds import AuthorEntries
from zinnia.feeds import CategoryEntries
from zinnia.feeds import SearchEntries
from zinnia.feeds import EntryComments
from zinnia.feeds import EntryPingbacks
from zinnia.feeds import EntryTrackbacks
from zinnia.feeds import EntryDiscussions
from zinnia.feeds import LastDiscussions

urlpatterns = [
    url(r'^$', LastEntries(), name='entry_feed'),
    url(_(r'^discussions/$'), LastDiscussions(), name='discussion_feed'),
    url(_(r'^search/$'), SearchEntries(), name='entry_search_feed'),
    url(_(r'^tags/(?P<tag>[^/]+(?u))/$'), TagEntries(), name='tag_feed'),
    url(_(r'^authors/(?P<username>[.+-@\w]+)/$'),
        AuthorEntries(),
        name='author_feed'),
    url(_(r'^categories/(?P<path>[-\/\w]+)/$'),
        CategoryEntries(),
        name='category_feed'),
    url(_(r'^discussions/(?P<year>\d{4})/(?P<month>\d{2})/'
          '(?P<day>\d{2})/(?P<slug>[-\w]+)/$'),
        EntryDiscussions(),
        name='entry_discussion_feed'),
    url(_(r'^comments/(?P<year>\d{4})/(?P<month>\d{2})/'
          '(?P<day>\d{2})/(?P<slug>[-\w]+)/$'),
        EntryComments(),
Пример #19
0
"""Urls for the Zinnia archives"""
from django.conf.urls import url

from zinnia.urls import _
from zinnia.views.archives import EntryDay
from zinnia.views.archives import EntryWeek
from zinnia.views.archives import EntryYear
from zinnia.views.archives import EntryMonth
from zinnia.views.archives import EntryToday
from zinnia.views.archives import EntryIndex

index_patterns = [
    url(r'^$', EntryIndex.as_view(), name='entry_archive_index'),
    url(_(r'^page/(?P<page>\d+)/$'),
        EntryIndex.as_view(),
        name='entry_archive_index_paginated')
]

year_patterns = [
    url(r'^(?P<year>\d{4})/$', EntryYear.as_view(), name='entry_archive_year'),
    url(_(r'^(?P<year>\d{4})/page/(?P<page>\d+)/$'),
        EntryYear.as_view(),
        name='entry_archive_year_paginated'),
]

week_patterns = [
    url(_(r'^(?P<year>\d{4})/week/(?P<week>\d+)/$'),
        EntryWeek.as_view(),
        name='entry_archive_week'),
    url(_(r'^(?P<year>\d{4})/week/(?P<week>\d+)/page/(?P<page>\d+)/$'),
        EntryWeek.as_view(),
Пример #20
0
"""Url for the Zinnia quick entry view"""
from django.conf.urls import url

from zinnia.urls import _
from zinnia.views.quick_entry import QuickEntry


urlpatterns = [
    url(_(r'^quick-entry/$'),
        QuickEntry.as_view(),
        name='entry_quick_post'),
]
Пример #21
0
"""Urls for the Zinnia tags"""
from django.conf.urls import url

from zinnia.urls import _
from zinnia.views.tags import TagDetail
from zinnia.views.tags import TagList


urlpatterns = [
    url(r'^$',
        TagList.as_view(),
        name='tag_list'),
    url(r'^(?P<tag>[^/]+(?u))/$',
        TagDetail.as_view(),
        name='tag_detail'),
    url(_(r'^(?P<tag>[^/]+(?u))/page/(?P<page>\d+)/$'),
        TagDetail.as_view(),
        name='tag_detail_paginated'),
]
Пример #22
0
"""Urls for the Zinnia archives"""
from django.urls import path

from zinnia.urls import _
from zinnia.views.archives import EntryDay
from zinnia.views.archives import EntryIndex
from zinnia.views.archives import EntryMonth
from zinnia.views.archives import EntryToday
from zinnia.views.archives import EntryWeek
from zinnia.views.archives import EntryYear

index_patterns = [
    path('', EntryIndex.as_view(), name='entry_archive_index'),
    path(_('page/<int:page>/'),
         EntryIndex.as_view(),
         name='entry_archive_index_paginated')
]

year_patterns = [
    path('<yyyy:year>/', EntryYear.as_view(), name='entry_archive_year'),
    path(_('<yyyy:year>/page/<int:page>/'),
         EntryYear.as_view(),
         name='entry_archive_year_paginated'),
]

week_patterns = [
    path(_('<yyyy:year>/week/<int:week>/'),
         EntryWeek.as_view(),
         name='entry_archive_week'),
    path(_('<yyyy:year>/week/<int:week>/page/<int:page>/'),
         EntryWeek.as_view(),
Пример #23
0
from zinnia.feeds import EntryComments
from zinnia.feeds import EntryDiscussions
from zinnia.feeds import EntryPingbacks
from zinnia.feeds import EntryTrackbacks
from zinnia.feeds import LastDiscussions
from zinnia.feeds import LastEntries
from zinnia.feeds import SearchEntries
from zinnia.feeds import TagEntries
from zinnia.urls import _


urlpatterns = [
    url(r'^$',
        LastEntries(),
        name='entry_feed'),
    url(_(r'^discussions/$'),
        LastDiscussions(),
        name='discussion_feed'),
    url(_(r'^search/$'),
        SearchEntries(),
        name='entry_search_feed'),
    url(_(r'^tags/(?P<tag>[^/]+(?u))/$'),
        TagEntries(),
        name='tag_feed'),
    url(_(r'^authors/(?P<username>[.+-@\w]+)/$'),
        AuthorEntries(),
        name='author_feed'),
    url(_(r'^categories/(?P<path>[-\/\w]+)/$'),
        CategoryEntries(),
        name='category_feed'),
    url(_(r'^discussions/(?P<year>\d{4})/(?P<month>\d{2})/'
Пример #24
0
"""Urls for the Zinnia comments"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.comments import CommentSuccess


urlpatterns = patterns(
    '',
    url(_(r'^success/$'),
        CommentSuccess.as_view(),
        name='zinnia_comment_success')
)
Пример #25
0
"""Urls for the Zinnia authors"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.authors import AuthorList
from zinnia.views.authors import AuthorDetail


urlpatterns = patterns(
    "",
    url(r"^$", AuthorList.as_view(), name="zinnia_author_list"),
    url(
        _(r"^(?P<username>[.+-@\w]+)/page/(?P<page>\d+)/$"),
        AuthorDetail.as_view(),
        name="zinnia_author_detail_paginated",
    ),
    url(r"^(?P<username>[.+-@\w]+)/$", AuthorDetail.as_view(), name="zinnia_author_detail"),
)
Пример #26
0
"""Urls for the Zinnia comments"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.urls import _
from zinnia.views.comments import CommentSuccess

urlpatterns = patterns(
    '',
    url(_(r'^success/$'),
        CommentSuccess.as_view(),
        name='zinnia_comment_success'))
Пример #27
0
"""Urls for the Zinnia authors"""
from django.conf.urls import url

from zinnia.urls import _
from zinnia.views.authors import AuthorList
from zinnia.views.authors import AuthorDetail


urlpatterns = [
    url(r'^$',
        AuthorList.as_view(),
        name='author_list'),
    url(_(r'^(?P<username>[.+-@\w]+)/page/(?P<page>\d+)/$'),
        AuthorDetail.as_view(),
        name='author_detail_paginated'),
    url(r'^(?P<username>[.+-@\w]+)/$',
        AuthorDetail.as_view(),
        name='author_detail'),
]
Пример #28
0
"""Urls for the Zinnia categories"""
from django.urls import path

from zinnia.urls import _
from zinnia.views.categories import CategoryDetail
from zinnia.views.categories import CategoryList

urlpatterns = [
    path('', CategoryList.as_view(), name='category_list'),
    path(_('<path:path>/page/<int:page>/'),
         CategoryDetail.as_view(),
         name='category_detail_paginated'),
    path('<path:path>/', CategoryDetail.as_view(), name='category_detail'),
]