Sunday, July 31, 2022

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


There are a couple of projects built in Django for this, for example Django-Oscar or saleor(community version), the last one is a tech stack a little bigger but really fast and customizable.

If you want to start one from scratch, be sure to check both projects as they have good abstraction classes.

Regards



El El dom, 31 de jul. de 2022 a la(s) 16:02, Ram <ram.mullapudi@gmail.com> escribió:
Hi,

In my opinion if you are starting from scratch to develop your ecommerce application, I would encourage you to start with DRF, but if in case if you can not afford to write DRF APIs for an existing application, you might want to refer this:


Disclaimer: I can not give any guarantee on this article because we did not try this. In fact I would like to hear comments from other experts here about this article?

Best regards,
~Ram



On Sun, Jul 31, 2022 at 8:30 AM Lakshyaraj Dash <dashlakshyaraj2006@gmail.com> wrote:
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.

--
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/CA%2BOi5F11sjbkoXN6PpQvHOknTCSbmyvG6Yis9aKJESzhOyuQNA%40mail.gmail.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/CAHRQUHk%2Bn4A%3DK-tBp3BcL86L3%3DRJgouMsDzQrQS-woiCzN_YOQ%40mail.gmail.com.

No comments:

Post a Comment