/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 vote247 views1 answer
- 0 vote211 views1 answer
- 0 vote278 views1 answer
- 1 vote288 views2 answers
- 0 vote268 views5 answers
- 0 vote253 views1 answer
- 0 vote310 views1 answer
- -1 vote262 views1 answer
- 0 vote288 views1 answer
- 1 vote258 views1 answer