Vue integration into django, template path setting problem.

I point the template of the django setting file directly to the index file of vue-cli. Then after running django, I found that index was blank.
but after npm run build, point the template of setting to the packaged index and display it.

is there any way not to display normally after build?
it feels like I didn"t find the static file of vue before I had no build. I don"t know where to find it.
is there a better way?

Apr.07,2021

after groping, it is found that it can only be implemented after build.


I enable both locally. As long as the request in vue accesses django, data interaction can be realized

Menu