Thursday, September 3, 2020

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

RESOLVED. I managed to fix it. 

The problem .. Was so obvious. In views.py I did not provide the cart.html and checkout.html with the same configurations as store.html. Thus, this caused the 500 server errors. I hope that this thread can help anyone in the future that encounters a similar predicament. 

Thank you all for the assistance. 

On Thu, Sep 3, 2020 at 9:43 AM King Niko <thelegendofearthreturns@gmail.com> wrote:
Hi Kasper, 

I am getting the following error: 

raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: ./store/cart.html

How can the template not exist if the other templates exist? Lol, it seems impossible. 


On Thu, Sep 3, 2020 at 8:31 AM Kasper Laudrup <laudrup@stacktrace.dk> wrote:
Hi King Niko,

On 03/09/2020 13.44, King Niko wrote:
> Okay, so I fixed everything with Django Logging- including getting the
> pictures to show up in the store.
>

What's written in the Django logs when you get the 500 errors?

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/40fd1120-91a7-d7e3-f08e-9c082aff5ea6%40stacktrace.dk.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO1EWpFp7EBVMj%3Dr44BEY030Oc45BmHvzjtmFdkGmBZHk9MiuQ%40mail.gmail.com.

No comments:

Post a Comment