/Python/Django/Urlpatterns += static(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
Urlpatterns += static(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
Urlpatterns += static(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
2
Source: stackoverflow.com
- 0 vote277 views1 answer
- 0 vote331 views1 answer
- 0 vote307 views1 answer
- 0 vote326 views2 answers
- 0 vote298 views1 answer
- 0 vote348 views1 answer
- 0 vote301 views1 answer
- 0 vote413 views1 answer
- 16 votes332 views6 answers
- 1 vote322 views1 answer