Hi i am trying to make blog website but while i fetch model with blogpost function in views.py its shows error that 404 page not found like ||Using the URLconf defined in mac.urls, Django tried these URL patterns, in this order: admin/ shop/ blog/ [name='BlogHome'] blog The current path, blog/blogpost, didn't match any of these. ||
-until i don't create model it works fine but after creating model and trying to fetch articles through post_id it throws error as page not found! -what am i missing? -Here is the codes i am using.
code of blog/views.py ->
code of blog/urls.py -> enter image description here
code of mac/views.py -> enter image description here
code of blog/adminpy -> enter image description here
code of blog/models.py -> enter image description here
terminal error while loading blogpost page -> enter image description here
Aucun commentaire:
Enregistrer un commentaire