/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
- 1 vote161 views1 answer
- 0 vote186 views1 answer
- 0 vote179 views1 answer
- 0 vote154 views1 answer
- 0 vote224 views1 answer
- 2 votes172 views2 answers
- 5 votes166 views4 answers
- 1 vote159 views1 answer
- 1 vote199 views1 answer
- -1 vote190 views2 answers