I am having a problem with cache_page and url resolver, my problem is
that django doesn't resolve correctly my url to the correct url when
the view is cached with cache_page decorator.
In fact this is in the context of sitemaps contrib, what I am doing is
the following:
(r'^sitemap.xml$', index, {'sitemaps': sitemaps}),
(r'^sitemap-(?P<section>.+)\.xml$', cache_page(sitemap, 24 * 60 *
60), {'sitemaps': sitemaps}),
then I get the following response in sitemap.xml:
<sitemapindex>
<sitemap>
<loc>http://localhost:8000/barcelona/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>http://localhost:8000/barcelona/sitemap.xml</loc>
</sitemap>
...
<sitemapindex>
Which is incorrect because should have the diferent url for each
section sitemap-<section>.xml. I think this is related to an issue
closed for python 2.4 but I am experiementing this problem also with
python 2.5.2, anyone else has this problem ? my django version is the
revisio 9080
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---