Re: How to get the urls defined in urls.py

2007-12-18 Thread Rajesh Dhawan
On Dec 18, 9:10 am, shabda <[EMAIL PROTECTED]> wrote: > I have my urls.py defined as > urlpatterns = patterns('app.views', > (r'^foo/$', 'foo'), > (r'^bar/$', 'bar'),) > > Now from a template i need to access these urls. So inside the > template we can refer them as /foo/, /bar/.

Re: How to get the urls defined in urls.py

2007-12-18 Thread James Bennett
On Dec 18, 2007 8:10 AM, shabda <[EMAIL PROTECTED]> wrote: > Now from a template i need to access these urls. So inside the > template we can refer them as /foo/, /bar/. However later when I > change the urls.py, these urls defined in urls.py would break. What > would be a good way around this?

How to get the urls defined in urls.py

2007-12-18 Thread shabda
I have my urls.py defined as urlpatterns = patterns('app.views', (r'^foo/$', 'foo'), (r'^bar/$', 'bar'),) Now from a template i need to access these urls. So inside the template we can refer them as /foo/, /bar/. However later when I change the urls.py, these urls defined in urls.py