Re: Reverse URL Questions

2008-08-21 Thread Norman Harman
On Thu, Aug 21, 2008 at 1:50 AM, Rodney Topor <[EMAIL PROTECTED]> wrote: > Second: Doesn't the use of get_absolute_url() somehow violate the > separation of URLs from models? I think so. I have found named urls http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns url

Re: Reverse URL Questions

2008-08-21 Thread Rodney Topor
On Aug 21, 5:25 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > good stuff Thanks very much for the good explanation. > > Third: If one is to reverse map views to URLs, which is the best way > > to do it (if there is a best way)? > > Clarify what you mean by this? Well, perhaps I was

Re: Reverse URL Questions

2008-08-21 Thread James Bennett
On Thu, Aug 21, 2008 at 1:50 AM, Rodney Topor <[EMAIL PROTECTED]> wrote: > So: Why is the use of explicit URLs discouraged, especially in > templates? Why is it better to write {% url > project_name.app_name.views.results %} in a template than to write / > results/ (assuming the URLconf maps

Reverse URL Questions

2008-08-21 Thread Rodney Topor
There's a practical and stylistic issue I don't understand about the recommended use of Django and I hope someone can enlighten me. Application design starts with model design and URL structure design. Each URLconf provides a mapping from URLs to views. There are several different mechanisms