[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: Thu, 19 Apr 2012 14:59:51 +0200

Le Thu, 19 Apr 2012 11:58:36 +0200,
Étienne Loks <address@hidden> a écrit :

> The only way I am thinking of is to test Django version.
> Something like:
> import django
> assert django.VERSION[0] == 1 and django.VERSION[1] >= 2
> if django.VERSION[1] == 2:
>     from django.contrib.syndication.views import Feed
> else:
>     from django.contrib.gis.feeds import Feed

Well, it's the opposite: the code running with Django 1.2 uses
django.contrib.gis.feeds while the code I've done for Django 1.4 uses

However, the two are not equivalent: by using the
django.contrib.syndication.views variant, we lose the GeoRSS
capabilities of django.contrib.gis.feeds.

Thomas Petazzoni      
Logiciels Libres à Toulouse
Embedded Linux        

reply via email to

[Prev in Thread] Current Thread [Next in Thread]