On Dec 15, 3:36 pm, Baurzhan Ismagulov <
i...@radix50.net> wrote:
> On Mon, Dec 14, 2009 at 02:12:00AM -0800, bruno desthuilliers wrote:
> > > (r'^app/(?P<object_id>\d+)/$', create_update.update_object,
> > > {'model': App}, 'app-edit'),
>
> > > Now, using {% url 'app-edit'
object.pk %} in a form throws
> > > TemplateSyntaxError, mentioning "NoReverseMatch: Reverse for
> > > 'rc.'app-edit'' with arguments '(1,)' and keyword arguments '{}' not
> > > found."
>
> > The above url works with a named (aka 'keyword') param 'object_id', so
> > you do have to use the same scheme withing the url tag, ie:
>
> > {% url 'app-edit' object_id=
object.pk %}
>
> Thanks for the tip. This results in TemplateSyntaxError with
> "NoReverseMatch: Reverse for 'rc.'app-edit'' with arguments '()' and
> keyword arguments '{'object_id': 1}' not found.". What am I doing
> wrongly?
>
> With kind regards,
> --
> Baurzhan Ismagulovhttp://
www.kz-easy.com/