/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 vote195 views1 answer
- 1 vote194 views2 answers
- 4 votes192 views2 answers
- 1 vote208 views1 answer
- 1 vote205 views1 answer
- 0 vote220 views1 answer
- 0 vote211 views1 answer
- 0 vote221 views1 answer
- 1 vote219 views1 answer
- 0 vote199 views1 answer