diff options
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -8,6 +8,7 @@ from django.contrib.auth.decorators import permission_required from archweb.main.models import Todolist from archweb.feeds import PackageFeed, NewsFeed +from archweb.sitemaps import NewsSitemap, PackagesSitemap feeds = { @@ -15,6 +16,11 @@ feeds = { 'news': NewsFeed } +sitemaps = { + 'news': NewsSitemap, + 'packages': PackagesSitemap, +} + admin.autodiscover() urlpatterns = patterns('', @@ -60,6 +66,8 @@ urlpatterns = patterns('', # Feeds and sitemaps (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}), + (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', + {'sitemaps': sitemaps}), # Authentication / Admin (r'^login/$', 'django.contrib.auth.views.login', { |