Django i18n translations work locally but not when deployed in a CI/CD pipeline
I’m trying to add translations to my django project, and for some reason it never worked. When I deploy it in ci/cd pipeline not only does it not translate, but I get csrf errors, even though I got {% csrf token %} in my template and use render
in my view. But all these problems disappear when I run it locally. Here’s my code: