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

from zinnia.views.shortlink import EntryShortLink


urlpatterns = patterns(
    '',
    url(r'^(?P<pk>\d+)/$',
        EntryShortLink.as_view(),
        name='zinnia_entry_shortlink'),
    )
Пример #2
0
"""Urls for the Zinnia entries short link"""
from django.conf.urls import url
from django.conf.urls import patterns

from zinnia.views.shortlink import EntryShortLink


urlpatterns = patterns(
    '',
    url(r'^(?P<pk>\d+)/$',
        EntryShortLink.as_view(),
        name='zinnia_entry_shortlink'),
)
Пример #3
0
"""Urls for the Zinnia entries short link"""
from django.urls import path

from zinnia.views.shortlink import EntryShortLink

urlpatterns = [
    path('<token:token>', EntryShortLink.as_view(), name='entry_shortlink'),
]