[Answer]-How should i go about a TypeError function() takes exactly 2 arguments(1 given)

1👍

Your show_checkout view is taking a second id parameter that you are not accounting for in your URLs.

You need to add it to your URL as follows:

url(r'^checkout/(?P<checkout_id>[\w|\W]+)$',show_checkout,name="checkout"),

And when you call the URL in your template, you need to pass the id that you are asking for in the view like so:

{% url checkout checkout.id %}

Or if you are using Django 1.5:

{% url 'checkout' checkout.id %}

Leave a comment