Le Wed, 18 Apr 2012 22:19:21 +0200, Thomas Petazzoni <[email protected]> a écrit :
> 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 <[email protected]> > --- > www/urls.py | 9 ++------- > 1 files changed, 2 insertions(+), 7 deletions(-) Unfortunately, it doesn't work really nicely due to the usage of django.contrib.gis.feeds with Django 1.2 (but it works fine in Django 1.4). Django 1.2 complains when parsing: + url(r'^feeds/(?P<url>.*)/$', MapsFeed(), name='rss-feed'), and says that __init__() takes 3 arguments and only one was provided (I guess it's the constructor of MapsFeed). On the dev.m.o instance, I have temporarily worked-around this by applying the following change: -from django.contrib.gis.feeds import Feed +# from django.contrib.gis.feeds import Feed +from django.contrib.syndication.views import Feed Étienne, do you know how to fix this problem to make the code Django 1.2 and 1.4 compatible? Thomas -- Thomas Petazzoni http://thomas.enix.org MapOSMatic http://www.maposmatic.org Logiciels Libres à Toulouse http://www.toulibre.org Embedded Linux http://www.free-electrons.com
