/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
- 0 vote267 views1 answer
- -2 votes214 views6 answers
- 1 vote230 views1 answer
- 1 vote250 views1 answer
- 29 votes258 views3 answers
- 0 vote183 views1 answer
- 1 vote225 views1 answer
- 0 vote228 views1 answer
- 0 vote228 views1 answer
- 1 vote232 views1 answer