Re: reverse() with keyword argument driving me batty

2012-01-12 Thread J. Cliff Dyer
Your URLconf is broken. The (?P) regex fragment gives you a keyword argument of jobkey, but it only matches a zero length string. You need to include a regex to specify what you want jobkey to match. (?P[0-9a-fA-F]*) Cheers, Cliff On Thu, 2012-01-12 at 09:50 -0800, John DeRosa wrote: > Hi all

Re: reverse() with keyword argument driving me batty

2012-01-12 Thread John DeRosa
On Jan 12, 2012, at 10:18 AM, Andy McKay wrote: > On Thu, Jan 12, 2012 at 9:50 AM, John DeRosa wrote: >> url(r'^results/text/(?P)/$', 'textresults', >> name='exporttextresults') > > One guess, you haven't specified what the (?P in your regex accepts. > For example: > (?P\w+) > Gah! I am

Re: reverse() with keyword argument driving me batty

2012-01-12 Thread Andy McKay
On Thu, Jan 12, 2012 at 9:50 AM, John DeRosa wrote: >       url(r'^results/text/(?P)/$', 'textresults', > name='exporttextresults') One guess, you haven't specified what the (?P in your regex accepts. For example: (?P\w+) -- You received this message because you are subscribed to the Google Gr

reverse() with keyword argument driving me batty

2012-01-12 Thread John DeRosa
Hi all, I'm running Django 1.3, and I can't get a simple reverse() with keywords to work. My urlconf has this: url(r'^results/text/(?P)/$', 'textresults', name='exporttextresults') My code does this: exporturl = reverse("exporttextresults", kwargs={"jobkey": returned_key}) And