[Fixed]-Improperly Configured -success_url in Django

1👍

After the form is successfully submitted, you are redirecting to the url named cars. You haven’t shown this view, but the error message is telling you that you haven’t set template_name for it. You should add something like the following.

class CarView(...):
    template_name = 'cars.html'

0👍

you need to name the template where success page should show up:

url(r'^car/rent$', CarRentView.as_view(template_name="success.html"), name = 'rent'),

Leave a comment