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 <[email protected]> wrote: > Please can you show me your views.py? > > > > > ----------------------------------------------------------------------------------------------------- > > Samuel Nogueira Bacelar > > > > GitHub: https://github.com/SamuelNoB > > > > Linkedin: https://www.linkedin.com/in/samuel-nogueira-87800b1aa/ > > > > > ----------------------------------------------------------------------------------------------------- > > > > *De: *Vineeth <[email protected]> > *Enviado:*segunda-feira, 26 de outubro de 2020 06:54 > *Para: *Django users <[email protected]> > *Assunto: *How to connect django and React js but getting Error > > > > 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 > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/09f5e196-12b7-44f0-a7fd-52dd8ce035cdn%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/09f5e196-12b7-44f0-a7fd-52dd8ce035cdn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/6B703D92-F4D2-409F-B6B7-1303FDF9FB8F%40hxcore.ol > <https://groups.google.com/d/msgid/django-users/6B703D92-F4D2-409F-B6B7-1303FDF9FB8F%40hxcore.ol?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE0AZGKWmD87dLHepmPDEK3LgDb8Sv%3DLA2G-nNo9sdRpGOAZjA%40mail.gmail.com.

