/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
- 4 votes184 views1 answer
- 0 vote217 views1 answer
- 1 vote191 views1 answer
- 0 vote185 views1 answer
- 2 votes185 views5 answers
- 1 vote184 views2 answers
- 0 vote203 views1 answer
- 0 vote198 views2 answers
- 4 votes192 views2 answers
- 1 vote186 views1 answer