Since 1.2, the declaration for the RSS feed url has slightly changed, and the old way is no longer available in Django 1.4. So, switch to the new way.
Signed-off-by: Thomas Petazzoni <thomas.petazz...@enix.org> --- www/urls.py | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/www/urls.py b/www/urls.py index b696340..44a6d06 100644 --- a/www/urls.py +++ b/www/urls.py @@ -28,14 +28,10 @@ from django.conf.urls.defaults import * # from django.contrib import admin # admin.autodiscover() -import maposmatic.feeds +from maposmatic.feeds import MapsFeed import maposmatic.views import settings -feeds = { - 'maps': maposmatic.feeds.MapsFeed, -} - urlpatterns = patterns('', url(r'^$', maposmatic.views.index, name='main'), @@ -75,8 +71,7 @@ urlpatterns = patterns('', (r'^i18n/', include('django.conf.urls.i18n')), # Feeds - (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', - {'feed_dict': feeds}, 'rss-feed'), + url(r'^feeds/(?P<url>.*)/$', MapsFeed(), name='rss-feed'), ) if settings.DEBUG: -- 1.7.5.4