+ if self.feeds_enabled:
+ urlpatterns += patterns('',
+ url(r'^%s/(?P<tag_slugs>[-\w]+[-+/\w]*)/%s/' % (self.tag_permalink_base, self.feed_suffix), self.feed_view(self.get_entries_by_tag, 'entries_by_tag_feed'), name='entries_by_tag_feed'),
+ )
+ urlpatterns += patterns('',
+ url(r'^%s/(?P<tag_slugs>[-\w]+[-+/\w]*)/' % self.tag_permalink_base, self.page_view(self.get_entries_by_tag, self.tag_page), name='entries_by_tag')
+ )
+ if self.tag_archive_page:
+ urlpatterns += patterns('',
+ url((r'^(?:%s)/?$' % self.tag_permalink_base), self.tag_archive_view)
+ )
+
+ if self.entry_archive_page:
+ if self.entry_permalink_style in 'DMY':
+ urlpatterns += patterns('',
+ url(r'^(?P<year>\d{4})/', include(self.feed_patterns(self.get_entries_by_ymd, self.entry_archive_page, 'entries_by_year')))
+ )
+ if self.entry_permalink_style in 'DM':
+ urlpatterns += patterns('',
+ url(r'^(?P<year>\d{4})/(?P<month>\d{2})/?$', include(self.feed_patterns(self.get_entries_by_ymd, self.entry_archive_page, 'entries_by_month'))),
+ )
+ if self.entry_permalink_style == 'D':
+ urlpatterns += patterns('',
+ url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/?$', include(self.feed_patterns(self.get_entries_by_ymd, self.entry_archive_page, 'entries_by_day')))
+ )
+