Hi Jimmy, Could you please check your urls.py? You need to pass category_name_url in url mapping. Read this<http://www.tangowithdjango.com/book/chapters/models_templates.html#parameterised-url-mapping> section in the book and check this<https://github.com/leifos/tango_with_django/blob/master/tango_with_django_project/rango/urls.py#L9> .
On Sun, Oct 27, 2013 at 5:01 PM, Jimmy Pants <[email protected]> wrote: > Hey yall > > Here is my current views.py: > > http://pastebin.mozilla.org/3361332 > > PROBLEM: > > I'm trying to add an "Add Page" form to the project, per the tutorial at > this step: > > > http://www.tangowithdjango.com/book/chapters/forms.html#creating-an-add-pages-view-template-and-url-mapping > > When I click on "Add Page" in a category view, I get > > TypeError at /rango/add_page/ > > add_page() takes exactly 2 arguments (1 given) > > > THOUGHTS: > > So far as I can tell, line 60 adds category_name_url to context_dict, > which means that category_name_url should go into the context that gets > passed on.. or else I am seriously failing to grasp this, which is the more > likely idea. I'm pretty sure I can't just add another argument to the > render_to_response, so the only other option I can think of is to put a > dictionary in the render_to_response, which includes category_name_url... > BUT I don't know what all else is in the context_dict at that point. > > been fiddling with this for a couple hours now, seemingly getting nowhere. > I based my current code on the stuff > here<https://github.com/leifos/tango_with_django/blob/master/tango_with_django_project/rango/views.py> > . > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/97806597-f43d-4184-9ec5-736897967324%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN1WgRLQ3hsCH2b9a2yY%2BS0xKcQs4x_OquJk6aeJv4d43dPV1A%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

