2đź‘Ť
âś…
What’s going on is that the angular syntax is colliding with django’s template rendering syntax. django is trying to evaluate and render those “{{ }}” as html tags, then it spits out something that angular can’t pick up anymore. That’s why they work in when being served from static because it doesn’t go through django’s rendering system, it simply just serves the file.
you might want to look into using the verbatim tag to exclude a section of your html from being rendered
https://docs.djangoproject.com/en/1.6/ref/templates/builtins/#verbatim
👤toad013
Source:stackexchange.com