/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
- 4 votes315 views3 answers
- 0 vote288 views1 answer
- 1 vote325 views1 answer
- 7 votes279 views2 answers
- 0 vote290 views1 answer
- 5 votes282 views2 answers
- 2 votes266 views3 answers
- 1 vote310 views2 answers
- 1 vote305 views1 answer
- 0 vote335 views1 answer