Get Advice Icon

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

Django REST framework

1.9K
2K
+ 1
310
Semantic UI

954
1.5K
+ 1
673
Add tool

Django REST framework vs Semantic UI: What are the differences?

Django REST framework and Semantic UI are both popular tools used in web development. However, they serve different purposes and have distinct features that set them apart from each other.

  1. Scalability and Flexibility: Django REST framework is a powerful and flexible framework that allows developers to build scalable and customizable APIs. It provides a wide range of tools and features such as authentication, serialization, and request parsing, which makes it easier to develop complex APIs. On the other hand, Semantic UI is a user interface component framework that focuses on providing pre-built, responsive, and mobile-friendly components for web design. It offers a collection of ready-to-use UI components such as buttons, forms, and grids, allowing developers to quickly build aesthetically pleasing interfaces.

  2. Backend vs Frontend: Django REST framework mainly focuses on the backend development of APIs and provides tools for building RESTful APIs using Django. It offers features such as API views, serializers, and authentication, making it an ideal choice for building robust backend systems. On the other hand, Semantic UI is primarily a frontend framework that focuses on providing a set of reusable UI components and styles. It helps in improving the user experience by offering a consistent and visually appealing design for the frontend of the website or application.

  3. API Development vs UI Design: Django REST framework is specifically designed for building APIs. It provides features such as content negotiation, pagination, and versioning, making it easy to create RESTful APIs. Developers can use Django's ORM system to define models and create API endpoints for data retrieval and manipulation. Semantic UI, on the other hand, is designed for UI design and provides a range of CSS, Javascript, and HTML components. It offers a set of pre-designed styles and layouts that can be easily customized to match the branding of the website or application.

  4. Supported Technologies: Django REST framework is built on top of Django, a high-level Python web framework. As a result, developers can take advantage of Django's features such as the request-response cycle, database connectivity, and authentication system while building APIs. Semantic UI, on the other hand, is a standalone HTML/CSS framework that can be used with any web technology stack. It does not have any specific dependencies and can be integrated with different frontend frameworks such as React, Angular, or Vue.js.

  5. Learning Curve: Django REST framework requires a good understanding of Django and its concepts, as it builds upon the Django framework. Developers need to be familiar with the Django ORM, views, and serializers to effectively use Django REST framework for API development. Semantic UI, on the other hand, has a relatively low learning curve as it provides a set of ready-to-use components and styling classes. Developers can quickly start using the components by referencing the documentation and examples provided by Semantic UI.

  6. Community and Ecosystem: Django REST framework has a large and active community of developers, which ensures continuous development, bug fixes, and improvements. It has a vast ecosystem of third-party packages and libraries that extend its functionality. Semantic UI also has a supportive community, but it is relatively smaller compared to Django REST framework. However, it provides a comprehensive set of components and themes that can be easily customized and extended.

In Summary, Django REST framework is a backend framework for building scalable and customizable APIs using Django, while Semantic UI is a frontend framework that provides a set of pre-built UI components and styles for web design. Django REST framework focuses on API development and integrates well with Django, while Semantic UI focuses on UI design and can be used with any web technology stack. The learning curve and community size differ between the two frameworks, with Django REST framework requiring a good understanding of Django concepts and having a larger and more active community.

Advice on Django REST framework and Semantic UI
kristan-dev
Senior Solutions Analyst · | 8 upvotes · 379.2K 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 · 369.2K 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 · | 6 upvotes · 324.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)
Recommends
on
FlaskFlask
at

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
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Django REST framework
Pros of Semantic UI
  • 66
    Easy to use
  • 65
    Browsable api
  • 53
    Great documentation
  • 50
    Customizable
  • 42
    Fast development
  • 9
    Easy to use, customizable, pluggable, serializer
  • 8
    Python
  • 7
    Django ORM
  • 5
    FastSerialize
  • 3
    Less code
  • 2
    Easy implementation
  • 157
    Easy to use and looks elegant
  • 92
    Variety of components
  • 64
    Themes
  • 61
    Has out-of-the-box widgets i would actually use
  • 57
    Semantic, duh
  • 44
    Its the future
  • 42
    Open source
  • 37
    Very active development
  • 31
    Far less complicated structure
  • 28
    Gulp
  • 9
    Already has more features than bootstrap
  • 8
    Just compare it to Bootstrap and you'll be hooked
  • 7
    Clean and consistent markup model
  • 7
    UI components
  • 6
    Responsiveness
  • 4
    Because it is semantic :-D
  • 4
    Elegant. clean. readable. maintainable
  • 4
    Good-Looking
  • 2
    Is big and look really great, nothing like this
  • 2
    Consistent
  • 2
    Great docs
  • 2
    Modular and scalable
  • 1
    Easy to use
  • 1
    Blends with reactjs
  • 1
    Jquery

Sign up to add or upvote prosMake informed product decisions

Cons of Django REST framework
Cons of Semantic UI
  • 2
    Bad documentation
  • 2
    Reimplements Django functionality
  • 1
    No support for URL Namespaces
  • 0
    Bad CSRF handling
  • 5
    Outdated build tool (gulp 3))
  • 3
    Poor accessibility support
  • 3
    HTML is not semantic (see list component)
  • 2
    Javascript is tied to jquery

Sign up to add or upvote consMake informed product decisions

2K
1.1K
31.8K
1.5K
884
2.7K
- 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 Semantic UI?

Semantic empowers designers and developers by creating a shared vocabulary for UI.

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

What companies use Django REST framework?
What companies use Semantic UI?
Manage your open source components, licenses, and vulnerabilities
Learn 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 Semantic UI?

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

Blog Posts

GitHubPythonReact+42
49
41063
GitHubPythonNode.js+47
55
72993
PythonDjangoDjango REST framework+3
6
5785
What are some alternatives to Django REST framework and Semantic UI?
Django
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Flask
Flask is intended for getting started very quickly and was developed with best intentions in mind.
Tastypie
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
Graphene is a Python library for building GraphQL schemas/types fast and easily.
See all alternatives