Hi all,

I've been doing some digging on this and haven't found a way to loop
through the urlpatterns in a given site (I'm going on the assumption
that all urls are stored in urls.py) and, with the help of the related
views, figure out all the possible URLs of a Django site.

Why am I interested in this? I've got a site that gets updated once a
day. So I'm caching each page for at least 24 hours. Some of the views
are expensive, so I'd like to expire the cache and set it
programmatically. The best way I can think of to do this is to make
requests on each of the URLs that need caching.

This feels like a remarkably unsophisticated approach, so if this is a
fools errand, or I'm overlooking something big, well, let me know and
I'll believe you.

Joe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to