Mobile app development with Ionic as an interface and Django as a backend

I am developing a mobile application that uses Ionic (AngularJS) as an interface and Django as a backend. I wanted to know if Django can be used to provide data in the form of a web JSON API that my application will use through http services. If so, how do I do this?

+5
source share
2 answers

I do the same, so YES that works well!

Take a look:

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

It will provide you with a flexible REST structure to serve your data.

On the angularjs side, I personally used $ resource instead of $ http, since promises are more flexible in my opinion. Especially chains using $ q.all () can be very useful.

Once you get to user authorization, look here:

AngularJS authorization header does not work

about some tips on how to get django rest while talking with our application.

+6
source

Take a look at this video for a great introduction to Django with the Django Rest Framework and Angular:

https://www.youtube.com/watch?v=GVDjoTt3r8A

An example of the application mentioned in the video can be found here:

https://github.com/TrackMaven/Djangular

+1
source

Source: https://habr.com/ru/post/1235699/


All Articles