diff -r 1db2db0cdf8b django/contrib/gis/feeds.py
a
|
b
|
|
1 | | from django.contrib.syndication.feeds import Feed as BaseFeed, FeedDoesNotExist |
| 1 | from django.contrib.syndication.views import Feed as BaseFeed, FeedDoesNotExist |
2 | 2 | from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed |
3 | 3 | |
4 | 4 | class GeoFeedMixin(object): |
diff -r 1db2db0cdf8b django/contrib/gis/tests/geoapp/urls.py
a
|
b
|
|
1 | 1 | from django.conf.urls.defaults import * |
2 | | from feeds import feed_dict |
| 2 | from feeds import TestGeoRSS1, TestGeoRSS2, TestGeoAtom1, TestGeoAtom2, \ |
| 3 | TestW3CGeo1, TestW3CGeo2, TestW3CGeo3 |
3 | 4 | |
4 | 5 | urlpatterns = patterns('', |
5 | | (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feed_dict}), |
| 6 | (r'^feeds/rss1/$', TestGeoRSS1()), |
| 7 | (r'^feeds/rss2/$', TestGeoRSS2()), |
| 8 | (r'^feeds/atom1/$', TestGeoAtom1()), |
| 9 | (r'^feeds/atom2/$', TestGeoAtom2()), |
| 10 | (r'^feeds/w3cgeo1/$', TestW3CGeo1()), |
| 11 | (r'^feeds/w3cgeo2/$', TestW3CGeo2()), |
| 12 | (r'^feeds/w3cgeo3/$', TestW3CGeo3()), |
6 | 13 | ) |
7 | 14 | |
8 | 15 | from sitemaps import sitemaps |
… |
… |
|
10 | 17 | (r'^sitemap.xml$', 'index', {'sitemaps' : sitemaps}), |
11 | 18 | (r'^sitemaps/(?P<section>\w+)\.xml$', 'sitemap', {'sitemaps' : sitemaps}), |
12 | 19 | (r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kml$', 'kml'), |
13 | | (r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kmz$', 'kmz'), |
| 20 | (r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kmz$', 'kmz'), |
14 | 21 | ) |