[Answer]-How to add angular to django 1.6 temlate

1πŸ‘

βœ…

It is because the {{Β }} notation is also used by the template engine of Django. You have to use the tags openvariable and closevariable such as :

<h2> Hello {% templatetag openvariable %} name {% templatetag closevariable %} </h2>

So when it gets rendered, the actual {{ and }} are seen by angular.

The angular script may not be loaded with :

<script src="ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.js"></script>

try adding http://

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.js"></script>
πŸ‘€Pierre Alex

Leave a comment