"""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'), ]
"""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"), )
"""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'), ]
"""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'), )
"""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<username>[.+-@\w]+)/page/(?P<page>\d+)/$'), AuthorDetail.as_view(), name='author_detail_paginated'), url(r'^(?P<username>[.+-@\w]+)/$', AuthorDetail.as_view(), name='author_detail'), )