Closed smileyninja closed 8 years ago
I have the same error :(
Hi @metlem and @smileyninja , i believe the errors is the wrong urls.
Change from this:
<a class="btn btn-default" href="{% url 'blog.views.post_publish' pk=post.pk %}">Publish</a>
To
<a class="btn btn-default" href="{% url 'post_publish' pk=post.pk %}">Publish</a>
Some of the urls is not updated, i have submitted a pull request #52 that fixed it. Hopefully it will get approve soon. If in any part of the tutorial, your see this blog.views.post_publish
just remove the blog.views.
prefix and it should work.
The fix for this has been merged now. Thank you! :+1:
I was having same problem but I forgot to ident in the models.py :(
Anyway found same "bug" on another part With Python 3.5 and Django 1.10.4 BUG: return redirect('blog.views.post_detail', pk=post.pk) TO: return redirect('post_detail', pk=post.pk)
ref: https://docs.djangoproject.com/en/1.10/topics/http/shortcuts/
Hi @xoroz please could you tell us where in the tutorial you found that line of code?
I get the following error when I click on the "Publish" button. I think the alignment in my post_detail.html file may be off and causing the problem. Is the source code listed somewhere?