Closed sandre35 closed 10 months ago
Templates is where you begin setting up your basic HTML CSS JS for your project. Therefore, you need to create a templates folder and put HTML in it to be taken from your DJANGO to the front end. Maybe this will help: https://docs.djangoproject.com/en/3.0/ref/templates/language/.
Hi @pythonyalfa
Sure I perfectly agree with your point about templates being used in the front end. However, my point is particularly focused on templates that are provided by django-bootstrap4
package. Since HTML files are not provided in the django-bootstrap4
23.3 build, they can not be localized by Django.
In my example, the missing template is bootstrap/message.html
That's what I mean. It seems your are missing the templates folder, and the message.html file inside the template folder which you are supposed to create yourself and then import the Django bootstrap tags. Here is a pic of what I think you're missing in your project. I'm still learning both Django and bootstrap so sorry if I'm confusing you or if I'm wrong, but but this I how I have come to understand Django templates.
I think you are missing one point. You are not restricted to templates of your own project. You can use templates declared in dependencies of your project, if you declare corresponding apps in your INSTALLED_APPS
See https://docs.djangoproject.com/en/5.0/topics/templates/#configuration
I'm encountering the same issue as of upgrading to 23.3. I had to pin 23.2 to workaround this for now: Exception Type: TemplateDoesNotExist Exception Value: bootstrap4/messages.html
Hi,
When launching tests on my project, I realize that one of django-bootstrap4 teamplate is missing
This issue only appears with the latest release : 23.3 Here is below the content of the django-bootstrap package. As you can see, the
templates
folder is missing.Regards,