Re: usage of url template tag

2012-03-21 Thread Larry Martell
On Wed, Mar 21, 2012 at 2:06 PM, Daniel Roseman wrote: > On Wednesday, 21 March 2012 03:01:23 UTC-7, larry@gmail.com wrote: >> >> >> I'm very new to django. The rest of the URL comes from the index >> function in views.py. I wasn't sure if it violated the DRY principle >> to hardcode it. > > >

Re: usage of url template tag

2012-03-21 Thread Daniel Roseman
On Wednesday, 21 March 2012 03:01:23 UTC-7, larry@gmail.com wrote: > > > I'm very new to django. The rest of the URL comes from the index > function in views.py. I wasn't sure if it violated the DRY principle > to hardcode it. > Fine, but you can't reverse a URL that does not exist. If you tri

Re: usage of url template tag

2012-03-21 Thread Tim Ney
Have you read the Django book section on advanced urlconfs, there is a very good discussion on how to put together customs urls. There are also good examples as well. The Django book is online all you have to do is google for it. On Wed, Mar 21, 2012 at 6:01 AM, Larry Martell wrote: > On Tue, Mar

Re: usage of url template tag

2012-03-21 Thread Larry Martell
On Tue, Mar 20, 2012 at 11:04 PM, Daniel Roseman wrote: > On Tuesday, 20 March 2012 15:27:27 UTC-7, larry@gmail.com wrote: >> >> I'm trying to generate a URL that looks something like this: >> >> >> /report/faloom/EventLog/?message=EventSearchString&tool_ids=13&field_1=Tool&field_2=Time&field_

Re: usage of url template tag

2012-03-20 Thread Daniel Roseman
On Tuesday, 20 March 2012 15:27:27 UTC-7, larry@gmail.com wrote: > > I'm trying to generate a URL that looks something like this: > > > /report/faloom/EventLog/?message=EventSearchString&tool_ids=13&field_1=Tool&field_2=Time&field_3=Module&field_4=Message&submit_preview=Generate+Report > > I ha

usage of url template tag

2012-03-20 Thread Larry Martell
I'm trying to generate a URL that looks something like this: /report/faloom/EventLog/?message=EventSearchString&tool_ids=13&field_1=Tool&field_2=Time&field_3=Module&field_4=Message&submit_preview=Generate+Report I have the values for the arguments (message, tool_ids, etc) available to me. My ur