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/.
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?
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
3 matches
Mail list logo