/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 vote344 views10 answers
- 4 votes349 views3 answers
- 0 vote305 views1 answer
- 1 vote379 views1 answer
- 2 votes364 views1 answer
- 0 vote366 views1 answer
- 0 vote339 views1 answer
- 1 vote345 views1 answer
- 0 vote345 views1 answer
- 0 vote315 views1 answer