1👍
✅
You are most likely using a url filter tag in your template. You need to pass the post_id as a parameter in your url filter tag.
{% url 'edit' post_id %}
On a side note, you should preferably use reverse or reverse_lazy to get url’s rather than hard coding them
from django.core.urlresolvers import reverse_lazy, reverse
HttpResponseRedirect(reverse('url_name'))
👤at14
Source:stackexchange.com