/Python/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
- 2 votes178 views1 answer
- 0 vote188 views1 answer
- 104 votes190 views5 answers
- 0 vote260 views1 answer
- -1 vote221 views2 answers
- 16 votes169 views6 answers
- 0 vote181 views1 answer
- 7 votes238 views5 answers
- 39 votes172 views6 answers
- 0 vote180 views1 answer