简体   繁体   中英

Combine django and react

I am doing this using axios to combine django and react. While running the program in the command prompt I have to use 2 command prompt. One for running (npm start) And the another for backend (python manage.py runserver)

My questions: Is there a way to run a single command in a single command prompt then both the commands should managed. How industries merge them both

Can we use the same program and change as an apk file and use in mobile app?

Django and React(webpack or whatever you are using) are 2 different processes and should be run in 2 different terminals.

As for running React as a mobile app, I recommend react-native, which is basically the same framework but with native (Android and iOS)APIs added.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM