/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
- 8 votes219 views6 answers
- 0 vote199 views1 answer
- 0 vote208 views1 answer
- 0 vote210 views2 answers
- 1 vote209 views1 answer
- 0 vote203 views1 answer
- 0 vote216 views1 answer
- 2 votes222 views4 answers
- 0 vote206 views1 answer
- 0 vote284 views1 answer