reactjs - 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 和 React(webpack 或您正在使用的任何东西)是 2 个不同的进程,应该在 2 个不同的终端中运行。
至于将 React 作为移动应用程序运行,我推荐 react-native,它基本上是相同的框架,但添加了原生(Android 和 iOS)API。
推荐阅读
- linux - xfce4-plugin“通知区域”别名“systray”的配置文件存储在哪里
- unit-testing - 为每个测试调用的 Ada AUnit 过程 Set_Up_Case 和 Tear_Down_Case
- ros - ROS UniversalRobots/Universal_Robots_ROS_Driver 和 ros-industrial/universal_robot 驱动程序的区别
- flutter - 安装加密依赖后出现颤振错误
- python - 浏览器代码和beautifulsoup集合不同
- cmd - 尝试使用赛普拉斯执行系统命令时出现系统性故障
- javascript - 在功能反应中,如何在组件渲染后立即自动模拟按钮按下?
- sql - 如何在子查询中求和然后分组?
- python - 无法将新帐户信息写入 csv 文件
- ruby-on-rails - 如何在rails中打开credentials.yml?