/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 vote175 views1 answer
- 1 vote171 views1 answer
- 2 votes201 views2 answers
- 0 vote166 views1 answer
- 0 vote160 views1 answer
- 9 votes159 views2 answers
- 0 vote194 views1 answer
- 2 votes161 views1 answer
- 69 votes167 views5 answers
- 0 vote175 views1 answer