首页 > 解决方案 > 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?

标签: reactjsdjangoapkweb-development-serverdjango-react

解决方案


Django 和 React(webpack 或您正在使用的任何东西)是 2 个不同的进程,应该在 2 个不同的终端中运行。

至于将 React 作为移动应用程序运行,我推荐 react-native,它基本上是相同的框架,但添加了原生(Android 和 iOS)API。


推荐阅读