/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
- 23 votes384 views4 answers
- 0 vote340 views1 answer
- 0 vote285 views1 answer
- 0 vote290 views1 answer
- 0 vote294 views1 answer
- 0 vote279 views1 answer
- 2 votes276 views5 answers
- 1 vote286 views1 answer
- 0 vote300 views1 answer
- 1 vote336 views1 answer