/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
- 0 vote280 views3 answers
- 6 votes297 views6 answers
- 8 votes261 views1 answer
- 3 votes286 views2 answers
- 0 vote262 views1 answer
- 1 vote311 views1 answer
- 6 votes297 views2 answers
- 7 votes276 views5 answers
- 1 vote270 views1 answer
- 1 vote274 views1 answer