/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
- 1 vote246 views1 answer
- 1 vote219 views1 answer
- 0 vote232 views1 answer
- 1 vote205 views1 answer
- -1 vote214 views1 answer
- 0 vote186 views1 answer
- -1 vote231 views1 answer
- 1 vote229 views1 answer
- 2 votes234 views2 answers
- 0 vote217 views1 answer