Need advice about which tool to choose?Ask the StackShare community!

Django REST framework

+ 1

+ 1
Add tool

Django REST framework vs NativeScript: What are the differences?

Django REST framework: Web APIs for Django. Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs; NativeScript: Build truly native apps with JavaScript. NativeScript enables developers to build native apps for iOS, Android and Windows Universal while sharing the application code across the platforms. When building the application UI, developers use our libraries, which abstract the differences between the native platforms.

Django REST framework can be classified as a tool in the "Microframeworks (Backend)" category, while NativeScript is grouped under "Cross-Platform Mobile Development".

Some of the features offered by Django REST framework are:

  • The Web browsable API is a huge usability win for your developers.
  • Authentication policies including OAuth1a and OAuth2 out of the box.
  • Serialization that supports both ORM and non-ORM data sources.

On the other hand, NativeScript provides the following key features:

  • 100% Access to Native Platform API
  • NativeScript is free of charge as an open source project
  • Code with JavaScript. Style with CSS

"Browsable api" is the primary reason why developers consider Django REST framework over the competitors, whereas "Access to the entire native api" was stated as the key factor in picking NativeScript.

Django REST framework and NativeScript are both open source tools. It seems that NativeScript with 17.1K GitHub stars and 1.26K forks on GitHub has more adoption than Django REST framework with 14.5K GitHub stars and 4.29K GitHub forks.

According to the StackShare community, Django REST framework has a broader approval, being mentioned in 159 company stacks & 77 developers stacks; compared to NativeScript, which is listed in 10 company stacks and 23 developer stacks.

Advice on Django REST framework and NativeScript
Senior Solutions Analyst · | 8 upvotes · 260K views

My journey to developing REST APIs started with Flask Restful, and I've found it to be enough for the needs of my project back then. Now that I've started investing more time on personal projects, I've yet to decide if I should move to use Django for writing REST APIs. I often see job posts looking for Python+Django developers, but it's usually for full-stack developers. I'm primarily interested in Data Engineering, so most of my web projects are back end.

Should I continue with what I know (Flask) or move on to Django?

See more
Replies (1)
Rafael Torres
Technical Lead at 4Agile · | 9 upvotes · 250.6K views

If you want to be a Web developer with knowledge in another frontend and NoSql technology, maybe continue with Flask. However, if you want to create very fast solutions to grow up with a new business and merge these with data analysis and other tools, Django is the answer. Basically read more about the service architecture where you feel more comfortable, Microservice or Monolithic, but please will not married with any because they solve issues to different contexts.

See more
Saurav Pandit
Application Devloper at Bny Mellon · | 5 upvotes · 211.5K views

I have just started learning Python 3 weeks ago. I want to create a REST API using python. The API will be used to save form data in an Oracle database. The front end is using AngularJS 8 with Angular Material. In python, there are so many frameworks to develop REST APIs.

I am looking for some suggestions which REST framework to choose?

Here are some features I am looking for:

  • Easy integration and unit testing, like in Angular. We just want to run a command.

  • Code packaging, like in java maven project we can build and package. I am looking for something which I can push in as an artifact and deploy whole code as a package.

  • Support for swagger/ OpenAPI

  • Support for JSON Web Token

  • Support for test case coverage report

Framework can have features included or can be available by extension. Also, you can suggest a framework other than the ones I have mentioned.

See more
Replies (1)

For starters flask provides a beautiful and easy way to create REST APIs. Also its supported by excellent beginner docs as well as a very active community. Another good thing with Flask is its widely available list of plugins which allow you to build as you go. Its also good in performance and can scale to a quite decent level. However, if you are sure your project is going to be fairly big, it would be better to start with Django as it provides a lot of features out of the box and is extremely stable in performance. Both these frameworks have support for Swagger, JWT, Coverage Report although you have to install plugins for them. Deploying both of these are fairly simple and there is huge documentation available. Django has one of the best documentations I have come across. I hope I was able to answer your queries.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Django REST framework
Pros of NativeScript
  • 65
    Easy to use
  • 64
    Browsable api
  • 53
    Great documentation
  • 49
  • 41
    Fast development
  • 9
    Easy to use, customizable, pluggable, serializer
  • 8
  • 6
    Django ORM
  • 5
  • 2
    Less code
  • 2
    Easy implementation
  • 75
    Access to the entire native api
  • 47
    Support for native ios and android libraries
  • 46
    Support for javascript libraries
  • 46
    Angular 2.0 support
  • 44
    Native ux and performance
  • 37
    Typescript support
  • 35
    Backed up by google and telerik
  • 29
    Css support
  • 27
    Cross-platform declarative ui and code
  • 25
    Fully open source under apache 2.0 license
  • 11
    Vuejs support
  • 9
    60fps performance
  • 6
    Powerful data visualization with native UI
  • 5
    VS Code integration
  • 5
    No need for Mac to build iOS apps in Telerik Platform
  • 5
    Angular, typescript and javascript support
  • 4
    Extended CLI support
  • 4
    Cloud builds as part of Telerik PLatform
  • 4
    Truly Object-Oriented with Typescript
  • 4
    On-device debugging
  • 4
  • 3
    Access to entire native api
  • 3
    0 day support for new OS updates
  • 3
    Easiest of all other frameworks
  • 3
    Easy to learn
  • 3
    Backed by google
  • 3
    Live reload
  • 3
    Publishing modules to NPM
  • 2
    Vue.js support out of the box
  • 2
    VueJS support
  • 2
    Svelte support
  • 2
    Powerfull mobile services as part of Telerik Platform
  • 2
    Native ui with angular
  • 2
    Vue support
  • 1
  • 1
    Hot Reload
  • 1
    HMR via webpack
  • 1
    Very small app size
  • 1
    Write once, use anywhere
  • 1
    Easy to use, support for almost all npm packages
  • 1
    Rich ecosystem
  • 1
    Compile to Apple/Google Stores via CloudCompiler
  • 1
    Has CSS ;-)
  • 1
    It works with Angular
  • 1
    Code reuse with your website
  • 0

Sign up to add or upvote prosMake informed product decisions

Cons of Django REST framework
Cons of NativeScript
  • 2
    Bad documentation
  • 2
    Reimplements Django functionality
  • 1
    No support for URL Namespaces
  • 0
    Bad CSRF handling
  • 5
    Lack of promotion
  • 1
    Slower Performance compared to competitors

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Django REST framework?

It is a powerful and flexible toolkit that makes it easy to build Web APIs.

What is NativeScript?

NativeScript enables developers to build native apps for iOS, Android and Windows Universal while sharing the application code across the platforms. When building the application UI, developers use our libraries, which abstract the differences between the native platforms.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Django REST framework?
What companies use NativeScript?
See which teams inside your own company are using Django REST framework or NativeScript.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Django REST framework?
What tools integrate with NativeScript?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

PythonDjangoDjango REST framework+3
What are some alternatives to Django REST framework and NativeScript?
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Flask is intended for getting started very quickly and was developed with best intentions in mind.
Tastypie is a webservice API framework for Django. It provides a convenient, yet powerful and highly customizable abstraction for creating REST-style interfaces.
Swagger UI
Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation and sandbox from a Swagger-compliant API
Graphene is a Python library for building GraphQL schemas/types fast and easily.
See all alternatives