diff options
author | Tom Willemse | 2013-05-23 00:35:46 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-23 00:39:41 +0200 |
commit | c14ccf7079c8d68473e80df9c20aaac735f69447 (patch) | |
tree | ba2f807fd16aa606d5e624b33ae065d96ffb426d /ryuslash/urls.py | |
parent | 91283adebd1531fc7e676fcd29734b46a989525f (diff) | |
download | ryuslash.org-c14ccf7079c8d68473e80df9c20aaac735f69447.tar.gz ryuslash.org-c14ccf7079c8d68473e80df9c20aaac735f69447.zip |
Add the all category and show feeds on page
Diffstat (limited to 'ryuslash/urls.py')
-rw-r--r-- | ryuslash/urls.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ryuslash/urls.py b/ryuslash/urls.py index a81f4c7..9224c64 100644 --- a/ryuslash/urls.py +++ b/ryuslash/urls.py @@ -7,9 +7,12 @@ from aggregator.feeds import LatestPostsFeed admin.autodiscover() urlpatterns = patterns( - '', + 'aggregator.views', + url(r'^$', 'posts', name='index'), + url(r'^(?P<page>\d+)/$', 'posts', name='index'), url(r'^admin/', include(admin.site.urls)), - url(r'^((?P<cat>[a-z_-]+)/)?((?P<page>\d+)/)?$', 'aggregator.views.posts'), + url(r'^(?P<cat>[a-z_-]+)/$', 'posts', name='index'), + url(r'^(?P<cat>[a-z_-]+)/(?P<page>\d+)/$', 'posts', name='index'), url(r'^feed/posts/$', LatestPostsFeed()), ) |