Hi, I need to create GeoRSS view in Django but only got error
Exception Type: TypeError
Exception Value:
__init__()
got an unexpected keyword argument 'feed_guid'Exception Location: /usr/lib/python2.6/site-packages/django/contrib/syndication/views.py in get_feed, line 117
I red GeoFeed and Syndication in Django docs many times and still donno what's wrong. This is my code:
from django.contrib.gis.feeds import Feed as GeoFeed
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed
from project.app.models import Location
class LocationsFeed(Feed):
feed_type = GeoFeed
title = Site.objects.get_current()
link = "/map/"
description = "Map"
def items(self):
return Location.objects.all()
def item_link(self, obj):
return obj.url
def item_geometry(self, obj):
return obj.point
my model:
from django.contrib.gis.db import models
class Location(models.Model):
[..]
point = models.PointField(srid=4326)
[..]
and my urls:
from project.app.feeds import LocationsFeed
urlpatterns = patterns('app.views',
(r'^rss/geo/$', LocationsFeed()),
)
Anyone?