https://loizenai.com Programming Tutorial
1603462188
https://loizenai.com/django-atlas-mongodb-restapis-crud-example-using-djongo/
In the tutorial, I introduce how to create a ‘Django MongoDB RestAPIs CRUD Example’ using Django Rest Framework and Djongo with details explanation and running coding:
– I draw overview diagram architecture and explain details the flow of code and main blocks of Django project.
– I guide step by step how to setup and implement the Django project with Django Rest Framework and MongoDB database.
– I create a testsuite with a number of integrative testcases with CRUD RestAPI requests from rest-client Postman to Django Server and save/retrieve data to MongoDB database.
#django #mongodb #restapi #crud #djongo
1623185400
This article looks at how permissions work in Django REST Framework (DRF).
By the end of this article, you should be able to explain:
has_permission
and has_object_permission
has_permission
and has_object_permission
In DRF, permissions, along with authentication and throttling, are used to grant or deny access for different classes of users to different parts of an API.
Authentication and authorization work hand in hand. Authentication is always executed before authorization.
While authentication is the process of checking a user’s identity (the user the request came from, the token that it was signed with), authorization is a process of checking if the request user has the necessary permissions for executing the request (are they a super user, are they the creators of the object).
The authorization process in DRF is covered by permissions.
#permissions in django rest framework #django rest framework #permissions #rest #rest framework #django
https://loizenai.com Programming Tutorial
1603462188
https://loizenai.com/django-atlas-mongodb-restapis-crud-example-using-djongo/
In the tutorial, I introduce how to create a ‘Django MongoDB RestAPIs CRUD Example’ using Django Rest Framework and Djongo with details explanation and running coding:
– I draw overview diagram architecture and explain details the flow of code and main blocks of Django project.
– I guide step by step how to setup and implement the Django project with Django Rest Framework and MongoDB database.
– I create a testsuite with a number of integrative testcases with CRUD RestAPI requests from rest-client Postman to Django Server and save/retrieve data to MongoDB database.
#django #mongodb #restapi #crud #djongo
1606738759
https://loizenai.com/django-angular-9-mongodb-crud-example/
Django is a Python-based free and open-source web framework that follows the model-template-view architectural pattern. Angular is a TypeScript-based open-source web application framework led by the Angular Team at Google. In the tutorial, I introduce how to build a “Django Python Angular 9 MongoDB CRUD RestAPI Example” with Fullstack Projects providing POST/GET/PUT/DELETE requests using Django Rest Framework and MongoDB database with step by step coding examples:
– I draw a fullstack overview Diagram Architecture from Angular Frontend to MongoDB database through Django RestAPI backend.
– Develop Django CRUD RestAPIs with the supporting of Django Rest Framework and Djongo library.
– Implement Angular CRUD application with the Angular Httpclient to do CRUD request (Post/Get/Put/Delete) to Django Backend APIs.
– I create a testsuite with a number of integrative testcases with CRUD RestAPI requests from Angular 9 HttpClient to do CRUD requests to Django RestAPIs Server and save/retrieve data to MongoDB database.
#django #angular9 #mongodb #crud #example
1606738669
https://loizenai.com/django-angular-10-mongodb-crud-example/
Django is a Python-based free and open-source web framework that follows the model-template-view architectural pattern. Angular is a TypeScript-based open-source web application framework led by the Angular Team at Google. In the tutorial, I introduce how to build a “Django Python Angular 10 MongoDB CRUD RestAPI Example” with Fullstack Projects providing POST/GET/PUT/DELETE requests using Django Rest Framework and MongoDB database with step by step coding examples:
– I draw a fullstack overview Diagram Architecture from Angular Frontend to MongoDB database through Django RestAPI backend.
– Develop Django CRUD RestAPIs with the supporting of Django Rest Framework and Djongo library.
– Implement Angular CRUD application with the Angular Httpclient to do CRUD request (Post/Get/Put/Delete) to Django Backend APIs.
– I create a testsuite with a number of integrative testcases with CRUD RestAPI requests from Angular 10 HttpClient to do CRUD requests to Django RestAPIs Server and save/retrieve data to MongoDB database.
#django #angular #mongodb #crud #example #djongo
1624196880
In this article, we’ll look at how to use Django REST Framework (DRF) serializers more efficiently and effectively by example. Along the way, we’ll dive into some advanced concepts like using the source
keyword, passing context, validating data, and much more.
This article supposes you already have a fair understanding of Django REST Framework.
This article covers:
The concepts presented in this article are not connected with one another. I recommend reading the article as a whole but feel free to hone in on the concept(s) that you’re specifically interested in.
#effectively using django rest framework serializers #django #django rest framework #serializers