/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
- 1 vote183 views1 answer
- 64 votes190 views5 answers
- 0 vote222 views1 answer
- 0 vote191 views1 answer
- 1 vote193 views1 answer
- 2 votes227 views1 answer
- 5 votes247 views3 answers
- 1 vote180 views1 answer
- 0 vote165 views1 answer
- 0 vote192 views1 answer