~panosl/django-logos/trunk

« back to all changes in this revision

Viewing changes to logos/urls.py

  • Committer: Panos Laganakos
  • Date: 2011-11-17 10:57:19 UTC
  • Revision ID: panos.laganakos@gmail.com-20111117105719-b2x4lct123zovedp
fixed slug generation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
from logos.models import Post
4
4
from logos.conf import settings
5
5
if settings.USE_TAGS:
6
 
        from tagging.views import tagged_object_list
 
6
        from taggit.views import tagged_object_list
7
7
        from logos.feeds import LatestPosts, TagFeed
8
8
        feeds = {
9
9
                'latest': LatestPosts,
53
53
 
54
54
if settings.USE_TAGS:
55
55
        urlpatterns += patterns('',
56
 
                url(r'^tag/(?P<tag>[^/]+)/$',
 
56
                url(r'^tag/(?P<slug>[^/]+)/$',
57
57
                        tagged_object_list,
58
 
                        dict(queryset_or_model=Post, paginate_by=settings.TAG_PAGINATE_BY, allow_empty=True,
 
58
                        #dict(queryset_or_model=Post, paginate_by=settings.TAGS_PAGINATE_BY, allow_empty=True,
 
59
                        dict(queryset=Post.objects.all(), paginate_by=settings.TAGS_PAGINATE_BY, allow_empty=True,
59
60
                                template_object_name='post'),
60
61
                        name='widget_tag_detail'),
61
62
        )