Skip to content
Snippets Groups Projects
urls.py 570 B
Newer Older
Olivier Le Brouster's avatar
Olivier Le Brouster committed
# -*- 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
Olivier Le Brouster's avatar
Olivier Le Brouster committed

# 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})
Olivier Le Brouster's avatar
Olivier Le Brouster committed

admin.autodiscover()
urls = ['', url(r'^admin/', include(admin.site.urls)), ] + news_urls
urlpatterns = patterns(*urls)