+ 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')))
+ )
+