0

I am in a middle of a project. I am done with models and basic request. I wanted to use Angular but seems like integrating angular directly with Django is a tough task. Can I use Django directly if I return JsonResponse instead og=f HttpResponse or will it cause some troubles?

Sᴀᴍ Onᴇᴌᴀ
  • 8,218
  • 8
  • 36
  • 58
Atishay
  • 63
  • 1
  • 1
  • 5
  • Using angular on the front end should have nothing to do with what back end you're using. What exactly do you mean when you say integrating angular with django is difficult? – Jessie Apr 24 '17 at 17:02
  • Since template processor command ( {{ }} ) for variable is same in both, so I think it might cause the issue. i was refering to : http://stackoverflow.com/questions/34672987/django-with-angular-2 tis thread in which it is suggested to use rest framework. – Atishay Apr 24 '17 at 17:20
  • See: http://stackoverflow.com/a/11108407/2896976 – Jessie Apr 24 '17 at 17:28
  • You can use class based views in Django and front end angular 2. – Usman Maqbool Apr 25 '17 at 04:49

0 Answers0