I have created one html file in which angular js code has been located and another backend file is there. Url is working properly. but i am not able to use {{ }} in html. What is the reason for that? And when i am getting response from backend file is always none. But data is passing correctly in request header.
Asked
Active
Viewed 115 times
-4
-
This is impossible to address. If you are using angular.js I recommend taking a look at django-rest-framework. – Alvaro Feb 02 '15 at 13:51
-
check this [question](http://stackoverflow.com/q/16014719/1189651) – bformet Feb 02 '15 at 13:54
-
I am not able to print values in ng-repeat block using {{ }} – Krunal Sevak Feb 02 '15 at 14:14
-
I am also not able to get request back from views.py file. whenever i am alerting result of success is always none – Krunal Sevak Feb 02 '15 at 14:15
2 Answers
1
I would recommend to use Angular JS and Django with the Django REST framework. That way you have the backend and frontend separated. Here are some links to get you started:
Getting Started with Django Rest Framework and AngularJS: http://blog.kevinastone.com/getting-started-with-django-rest-framework-and-angularjs.html

kristian
- 730
- 5
- 16
0
This is because the AngularJS renderer and Django template engine share the same token for variable substitution in templates.
Use verbatim block to stop the template from Django template rendering.

Riccardo
- 1,490
- 2
- 12
- 22
-
-
-
-
And I have send json like {"stat": "true", "result": [{"name": "krunal", "id": 2}, {"name": "umang", "id": 3}]} – Krunal Sevak Feb 03 '15 at 05:33