Server error 500 occurs when debug=False only for one view of my application.

Hello,
My application displays correctly for all pages. I have debug = False. But when I go to a specific URL, I get a 500 error. If I set debug = True, the page displays correctly.

I have installed Whitenoise.
The page in question loads HTML files stored in the ‘templates’ directory of my application, in the folder named ‘articles’. When debug = True, these files are displayed correctly. If I set debug = False, I get a 500 error. I do not have a ‘collectstatic’ directory."

It is related to this discussion

https://forum.djangoproject.com/t/djangos-template-language-is-not-being-properly-interpreted-in-the-text-file-loaded-into-the-django-template/28230/12

I would like to add that I do not have a ‘collectstatic’ folder.

thank for help

Please identify how you’re running your project.

Also post any error messages that you are getting on your console.

Thank Ken

Problem solved, I hadn’t updated collectstatic.

Best regards