the problem started with lectures talking about DTL (Django Template Language).
Well letting the server render the templates is a bit "oldskool", before front-end frameworks became widespread like Angular, React, Vue, etc. In the "old days", the server rendered the entire HTML part. Django still works with the same principle. Whereas Angular, React and Vue essentially assume the backend provides an API with the data, not a webpage, and then the front-end makes some nice-looking webpage from these data source(s).
The old way of rendering templates is however far from dead, and actually is even reincarnating: web frameworks like Alpine.js and HTMX to make it easy to implement some level of interactivity in backend-rendered HTML, which often is suprisingly hard.
If you want to use a front-end library like React, Vue, Angular, etc. I would suggest you more or less skip the template rendering parts, since these are not very useful for that, and likely not really necessary. In that case look for a course (perhaps it is already part of that course) that implements REST APIs, for example with the Django REST API framework.
Another solution is to look for a combination of Django, Alpine and HTMX, this idea is now gathering more momentum, although I think it depends if the ecosystem can be built fast enough, before people move away from it again.