
Learn to set up a Django project, create an app, define a customer model with name, age, address, and phone, migrate to sqlite, and run the admin dashboard.
Access the Django admin site, create a super user, and log in to manage users and groups; then register the customer model in admin.py to enable admin management.
Customize the admin site by creating a CustomerAdmin class that inherits from admin.ModelAdmin and displays name, age, and phone number. Register the admin to see the changes in the browser.
Update a customer with the put method by extracting request data and using a serializer to update the object in the database; return the updated object as json when valid.
Learn to clean up code in a Django REST framework project by using REST framework status codes, the response object, and request data, replacing JSON and HTTP responses.
Create a customer details class-based view to retrieve, update, and delete a customer by primary key using a serializer, handle not found with http 404, and return appropriate status codes.
Django REST framework is a powerful and flexible toolkit for building HTTP enabled service APIs that expose service and data. It can be consumed by a broad range of clients including browsers, mobiles, desktop and tablets. As it is HTTP service, so it can reach a broad range of client.
Django is a back-end framework used by Python developers to develop back-end applications. Django REST framework is used build Web APIs with Django
This course will take you in a step-by-step way to build your own Web APIs with Django REST framework
By taking this course you will have the required skills that you need to build real applications using Django REST framework and to learn advanced topics about Django REST framework
Requirements for this Course:
Basic Python knowledge
Who this course is for:
The course is python developers who wants to start learning web development with Django and Django rest framework
This course is ideal for people who wish to build their own web APIs that can be connected to a Front-end application developed with a Front-end framework like React or Angular
What you’ll learn
Django project structure
Admin site in a Django project
Class based views
Generic views
Implementing CRUD operations