/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
- 6 votes161 views1 answer
- 0 vote210 views1 answer
- 0 vote274 views1 answer
- 0 vote224 views1 answer
- 1 vote214 views1 answer
- 0 vote214 views1 answer
- -1 vote285 views2 answers
- 3 votes228 views1 answer
- 0 vote262 views3 answers
- 0 vote216 views1 answer