问题描述
我有一个带有前端和 django 后端的 CRA 应用程序。我使用 react-app-rewired
覆盖前端的 webpack 配置,以便保存 webpack-dev-server 的输出以供 django 使用。
下面是我的 override-config.js,它用于覆盖开箱即用的 CRA webpack 配置
奇怪的事情是前端产品构建没有这样的问题(运行yarn build
然后在浏览器中打开localhost:8000
,我可以正确获取前端)。以上 Refuse to execute ...
问题仅在我为开发模式运行 yarn start
时发生。
在此先感谢您的帮助!!!
解决方法
这是否仅在 Django settings.py 中的 sendPasswordResetEmail(email)
调试模式下发生?也许您会尝试将 DEBUG = True
添加到 urlpatterns
urls.py
assets
在此处引用 document。