Sunday, July 31, 2022

Re: Why do we need Django rest framework when our conventional django do what we want?

You need drf aka DjangoRestFramework because it provides a smooth api for your application. It comes into use whenever you're trying to have a javascript framework like ReactJS or NextJS or Angular or VueJS etc... On the client side. If you inject js framework in the frontend you also need a package called django-cors-headers.

You can also use drf with django if you don't have any js frameworks in the client side. In this case you don't need a cors headers package.

Thanks and Regards
Lakshyaraj Dash

On Sun, Jul 31, 2022, 19:53 Joseph Bashorun <josephbashorun5@gmail.com> wrote:

I am stuck in a loop of confusion. I am trying to build an ecommerce website and make it production ready. Do i need to build an API for it?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e45680e6-7c40-4ff4-985b-6cdc31a59e29n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7qQgCcfSxsJjbpgPUbW%2Bs1kUDB9VF2ES9QfzUrKrt%3DiYUhLg%40mail.gmail.com.

No comments:

Post a Comment