[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Maposmatic-dev] [PATCH 3/4] Adapt feeds url code to Django 1.4
From: |
Thomas Petazzoni |
Subject: |
Re: [Maposmatic-dev] [PATCH 3/4] Adapt feeds url code to Django 1.4 |
Date: |
Wed, 18 Apr 2012 22:37:52 +0200 |
Le Wed, 18 Apr 2012 22:19:21 +0200,
Thomas Petazzoni <address@hidden> 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 <address@hidden>
> ---
> 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
Re: [Maposmatic-dev] [PATCH 3/4] Adapt feeds url code to Django 1.4, Thomas Petazzoni, 2012/04/23
[Maposmatic-dev] [PATCH 4/4] Read the GIS database lag from a local file, Thomas Petazzoni, 2012/04/18