-4

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.

Riccardo
  • 1,490
  • 2
  • 12
  • 22

2 Answers2

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

http://www.django-rest-framework.org/

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