~panosl/django-logos/trunk

« back to all changes in this revision

Viewing changes to logos/urls.py

  • Committer: Panos Laganakos
  • Date: 2011-10-31 14:51:57 UTC
  • Revision ID: panos.laganakos@gmail.com-20111031145157-vl3lwbylb1chy7id
remove num_latest from the dict, and add it on the archive view only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
        'queryset': Post.published.all(),
21
21
        'date_field': 'pub_date',
22
22
        'allow_future': True,
23
 
        'num_latest': settings.NUM_LATEST,
24
23
}
25
24
 
26
25
sitemap = {
41
40
                name='logos_year_archive'),
42
41
        url(r'^/?$',
43
42
                'archive_index',
44
 
                dict(blog_dict, allow_empty=True),
 
43
                dict(blog_dict, num_latest=settings.NUM_LATEST, allow_empty=True),
45
44
                name='logos-archive'),
46
45
)
47
46