Re: How to connect django and React js but getting Error

2020-11-02 Thread Ravi G
Hi, How to move source code to production if code consists of images If anyone has any document related to production . please share me On Tue, Oct 27, 2020 at 6:57 PM Алмаз Есеньязов wrote: > You need to write > BASE_DIR / 'build' > not > '/build/' > > пн, 26 окт. 2020 г., 15:55 Vineeth : >

Re: How to connect django and React js but getting Error

2020-10-27 Thread Алмаз Есеньязов
You need to write BASE_DIR / 'build' not '/build/' пн, 26 окт. 2020 г., 15:55 Vineeth : > I am using django 3.1 version how to connect django and react i am trying > to connect but > getting Error like TemplateDoesNotExist at /index.html i attached my > folder structure and error image > > --

Re: How to connect django and React js but getting Error

2020-10-26 Thread Omkar Parab
In Trmplates  os.path.join(BASE_DIR, 'new/build') At the bottom  STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'new/build/static') ] On Mon, Oct 26, 2020, 3:24 PM Vineeth wrote: > I am using django 3.1 version how to connect django and react i am trying > to connect but > getting

Re: How to connect django and React js but getting Error

2020-10-26 Thread Ayser shuhaib
Your view must return a Jason response and not render a html file. You should learn Django Rest Framework for that This is an example here for how your view will look like: API View https://youtu.be/-x_Z_V9HXZE On Mon, 26 Oct 2020 at 13:08, Samuel Nogueira wrote: > Please can you show me

Re: How to connect django and React js but getting Error

2020-10-26 Thread Farai M
Why don't you use django rest framework API then separate your front end to your back end.That why you will not have to deal with integration issues On Mon, Oct 26, 2020, 11:55 AM Vineeth wrote: > I am using django 3.1 version how to connect django and react i am trying > to connect but >