Lets Add Cors and Implement a Cart Feature in our Django REST Framework Ecommerce API

Опубликовано: 30 Сентябрь 2024
на канале: Faith Olusegun
2,671
59

Let's Add Cors to our Ecommerce API and implement a basic Cart Feature...

Link to the project git repo https://github.com/propenster/youtube...

Video 1: Lets Create an Ecommerce API with Django and Django Rest Framework -    • Lets Create an Ecommerce API with Dja...  

Vieo 2: Lets Add Token Authentication To our Django REST Framework Ecommerce API -    • Lets Add Token Authentication To our ...  

Video 3: Lets Add Cors and Implement a Cart Feature in our Django REST Framework Ecommerce API -    • Lets Add Cors and Implement a Cart Fe...  


STEP:
+ install django-cors-headers
+ setup corsheaders config in settings.py

+ Create a Cart Model
+ Create CartSerializer
+ Create Cart List and Detail View...
+ Our API has Authentication set up now so be careful when you make requests...

Buy me a coffee: https://www.buymeacoffee.com/propenster