On Tue, Mar 20, 2012 at 11:04 PM, Daniel Roseman <dan...@roseman.org.uk> 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_3=Module&field_4=Message&submit_preview=Generate+Report >> >> I have the values for the arguments (message, tool_ids, etc) available to >> me. >> >> My urlconf has: >> >> (r'^report/$', motor.ui.views.index) >> >> If I put this in my template: >> >> {% url motor.ui.views.index %} >> >> I get: >> >> /report/ >> >> What do I use as arguments with the url tag to get the URL I want? >> I've tried many, many different things, but no matter what, I get a >> NoReverseMatch exception. > > > This question makes no sense at all. Your URL is just "/report/". You can > add the GET parameters manually, since they aren't matched in a URLconf, > but where is the 'faloom/EventLog' bit supposed to be coming from? There is > no URL that matches that.
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. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.