1👍
I have solved my problem !
I needed to change the way i was calling my url as it was the old way.
path('post/<int:pk>/', core_views.post_detail, name='post-detail')
This was the correct way to do it.
0👍
First, the last tag has the post detail URL but without the required integer variable.
Second, you shouldn’t loop through posts because it is a single object.
Third, according to the view you are showing, there is no context variable named ‘posts’. It’s post.
- [Answered ]-How to concatenate double curly brackets with variables in javascript
- [Answered ]-Django Admin select_related issue
- [Answered ]-Django-registration module dont send email
- [Answered ]-Is it possible to use GCM Cloud Connection Server (XMPP) with a Heroku app?
- [Answered ]-Google SDK gcloud crashed (UnicodeDecodeError): 'utf8' codec can't decode byte 0xf8 in position 29: invalid start byte
Source:stackexchange.com