小程序分销
All checks were successful
Deploy to Server / deploy (push) Successful in 24s

This commit is contained in:
jeremygan2021
2026-02-17 11:32:44 +08:00
parent db401a7103
commit 818b51a7ba

View File

@@ -15,7 +15,7 @@ urlpatterns = [
path('api/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'), path('api/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'),
] ]
# 静态文件配置(开发环境) # 静态文件配置(开发环境)1
if settings.DEBUG: if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)