Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value error in post(id = id) #1

Open
warui1738 opened this issue Nov 6, 2018 · 1 comment
Open

Value error in post(id = id) #1

warui1738 opened this issue Nov 6, 2018 · 1 comment

Comments

@warui1738
Copy link

def post_detail(request,id): postdetail = get_object_or_404(Posts,id =id) context={ "title":postdetail.title, "instance":postdetail, } return render(request,"webindex.html" ,context)

@maulik9021
Copy link

postdetail = get_object_or_404(post,id=id)..... check this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants