django + apache2.4 + mod_usgi 部署后,再生产状态下样式丢失,始终调试不出来,请支持

  1. debug=false情况下,主页面及管理页面全部乱了。

  2. 网上说的一些办法比如在url里修改如下:但是最后确报服务器错误。

re_path(r'^static/(?P.)$', static.serve, {'document_root': settings.STATIC_ROOT}),
url(r'^static/(?P.
)$', static.serve, {'document_root': settings.STATIC_ROOT}, name='static'),
url(r'^media/(?P.*)$', static.serve, {'document_root': settings.MEDIA_ROOT}),

希望在window nt或是win10 环境下,发布情况下,页面正常。

谢谢!