/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
- 5 votes249 views3 answers
- 2 votes201 views1 answer
- 1 vote167 views1 answer
- 0 vote157 views1 answer
- 20 votes176 views6 answers
- 1 vote202 views1 answer
- 19 votes161 views1 answer
- 4 votes171 views3 answers
- 0 vote166 views1 answer
- 1 vote239 views5 answers