1đź‘Ť
âś…
Firstly, when you post about an error, please give the full error message.
In this case the error is caused by the get_absolute_url
method of your model. It’s trying to reverse a url called “post_detail” passing id and slug arguments. But as you can see from the urls.py, there isn’t such a url: there’s one called “detail” that takes those arguments, or one called “post_detail” that takes no arguments and strangely points to your create view.
👤Daniel Roseman
Source:stackexchange.com