S
S
s1vemod2021-02-18 06:34:39
Django
s1vemod, 2021-02-18 06:34:39

How to route to React's url in Django?

Django + React question .
I did build React, then threw it static / html into Django - everything works fine.
url - /
But the problem is that if you immediately go to a certain address, say - /login , it will give an error that there is simply no such page.
Although there is to go to /, and then click on the appropriate button - everything will be fine.

Should I log url data? All html is in one file and rendering the same thing is hardly a good solution.
Tell me, is it React or Django? And how to fix this problem?

Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2021-02-18
@bacon

And django has nothing to do with it, you need to configure the web server so that it directs all these urls to /

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question