Newer
Older
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import url, include, patterns
from django.contrib import admin
from newsbox.urls import get_urls
# overwrites only the pagination
news_urls = get_urls(archive_view={'paginate_by': 1},
year_archive_view={'paginate_by': 1},
month_archive_view={'paginate_by': 1},
day_archive_view={'paginate_by': 1})
urls = ['', url(r'^admin/', include(admin.site.urls)), ] + news_urls
urlpatterns = patterns(*urls)