/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
- 10 votes204 views1 answer
- 0 vote190 views1 answer
- 0 vote214 views1 answer
- 0 vote183 views1 answer
- 1 vote202 views1 answer
- 0 vote193 views1 answer
- 0 vote198 views2 answers
- 0 vote198 views1 answer
- 0 vote191 views1 answer
- 5 votes190 views4 answers