/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 vote99 views1 answer
- 2 votes141 views1 answer
- 0 vote168 views1 answer
- 3 votes137 views1 answer
- 4 votes157 views1 answer
- 0 vote133 views1 answer
- 0 vote139 views1 answer
- 2 votes166 views5 answers
- 1 vote167 views1 answer
- 102 votes141 views6 answers