'WSGIRequest' object has no attribute 'front_page'

I want to link my post_create to frontpage.And im getting this error. Im a beginner and I dont really know how to link.Can you guy give me advice plz.

This is error im getting.enter image description here

This is my code in view.pyenter image description here This is my code in model.pyenter image description here This is my code in urls.pyenter image description here This is my code in templateenter image description here

it seems that in your post request there's no front_page key check that it exists.

the provided code for models.py isn't enough, show the front_page model as well, we maybe can see how u associate it with the request object ... ** basing from your view, "post.front_page = request.front_page"

Back to Top