# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from .views import (PostListView, PostDetailView, TaggedListView, AuthorEntriesView, PostArchiveView, CategoryEntriesView) from .feeds import LatestEntriesFeed, TagFeed from djangocms_forms.views import FormSubmission urlpatterns = patterns( '', url(r'^$', PostListView.as_view(), name='posts-latest'), url(r'^feed/$', LatestEntriesFeed(), name='posts-latest-feed'), url(r'^(?P\d{4})/$', PostArchiveView.as_view(), name='posts-archive'), url(r'^(?P\d{4})/(?P\d{1,2})/$', PostArchiveView.as_view(), name='posts-archive'), url(r'^(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/(?P\w[-\w]*)/$', PostDetailView.as_view(), name='post-detail'), url(r'^author/(?P[\w\.@+-]+)/$', AuthorEntriesView.as_view(), name='posts-author'), url(r'^category/(?P[\w\.@+-]+)/$', CategoryEntriesView.as_view(), name='posts-category'), url(r'^tag/(?P[-\w]+)/$', TaggedListView.as_view(), name='posts-tagged'), url(r'^tag/(?P[-\w]+)/feed/$', TagFeed(), name='posts-tagged-feed'), )