Fixed bug with urls and blog

This commit is contained in:
Sam Collins 2017-10-04 20:28:55 +01:00
parent 58fbfc5621
commit c251621e93
No known key found for this signature in database
GPG Key ID: 233C5943C800FE30
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ urlpatterns = [
url(r'^blog/$', PostList.as_view(), name='blog'),
url(r'^blog/rss/$', BlogFeed(), name='blog-rss'),
url(r'^rss.xml$', RssFeed(), name='main-rss'),
url(r'^blog/(?P<slug>[0-9A-Za-z_\-]+)/$', BlogPost.as_view, name='blog-item'),
url(r'^blog/(?P<slug>[0-9A-Za-z_\-]+)/$', BlogPost.as_view(), name='blog-item'),
url(r'^blog/category/(?P<category>[0-9A-Za-z_\-]+)/$', PostList.as_view(), name='blog-category'),
url(r'^blog/category/(?P<category>[0-9A-Za-z_\-]+)/rss/$', BlogCategoryFeed(), name='blog-category-feed'),
url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps},