/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
- 0 vote228 views1 answer
- 0 vote185 views1 answer
- 0 vote211 views2 answers
- 0 vote186 views1 answer
- 0 vote196 views1 answer
- 2 votes185 views2 answers
- 0 vote189 views1 answer
- 16 votes182 views6 answers
- -1 vote223 views1 answer
- 2 votes234 views1 answer