1👍
Please post the exact error you are getting.
When doing your HttpResponseRedirect
it’s best not to hardcode URLs like ‘/success/’.
Instead do this:
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
....
# Here 'success' is the URL name you have given.
return HttpResponseRedirect(reverse('success'))
This way, if you change the success URL (not that you should..) it will automatically update throughout your app rather than having to go back and change all your hardcoded values.
Read more about it in the Django Reverse resolution of URLs documentation.
👤Ewan
Source:stackexchange.com