You're welcome, Tell me if you have any doubts during implementation.
Cheers, Em seg, 24 de jun de 2019 às 09:28, Amsa <[email protected]> escreveu: > Fantastic. Thanks, Wanderley. > > Cheers > Amsa > > On Monday, June 24, 2019 at 5:51:34 PM UTC+5:30, Wandss wrote: >> >> Hi there Amsa, >> >> Both approaches are fine, I mean, there's no "right or wrong" since, >> choosing between then is more a personnal / architecture design choice. >> Keep in mind that if you use Django project to deliver your frontend >> application as a static file, you will have to create an url pointing to a >> view, that will render this HTML file (your frontend app) >> >> If distributing them separately you might have to install and configure >> django-cors, if requests from Javascript will come from a different domain. >> >> >> Cheers, >> >> Em seg, 24 de jun de 2019 às 04:56, Amsa <[email protected]> escreveu: >> >>> I am building a DJango Web Application where the back end is the DJango >>> Rest API and the front end is HTML/JS. >>> >>> Can I Keep both the API code (DJango project) and the front end code >>> (WWW folder) in the same server? or Should I move the front end to >>> somewhere else like AWS? >>> >>> Also, I am making the API calls through HTTP requests from JS (within >>> the same server). Is this the right approach. >>> >>> Appreciate your help. >>> >>> Regards >>> Amsa >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django REST framework" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-rest-framework/25a44b32-0f2e-402a-a561-891358f14e44%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-rest-framework/25a44b32-0f2e-402a-a561-891358f14e44%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/64a5570d-aab4-4ae3-9e8c-f20908f33f26%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/64a5570d-aab4-4ae3-9e8c-f20908f33f26%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CA%2Ba7aJ15xKTnj9SCcBhUV-G3HgDY6%2BPZX165tXdyM37V8GjkQg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
