Re: Is there a programmatic way to loop through all the possible URLs in a site?

2009-03-25 Thread Malcolm Tredinnick
On Wed, 2009-03-25 at 17:52 -0700, Joe Murphy wrote: [...] > and, with the help of the related > views, figure out all the possible URLs of a Django site. That could be an infinite set. Consider how many URLs this pattern represents, for example: /foo/bar/(?P.*)/$ > Why am I interested

Is there a programmatic way to loop through all the possible URLs in a site?

2009-03-25 Thread Joe Murphy
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 i