/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
- 2 votes234 views1 answer
- 0 vote216 views1 answer
- 0 vote239 views1 answer
- 1 vote200 views1 answer
- 0 vote217 views1 answer
- 0 vote222 views2 answers
- 0 vote239 views1 answer
- 0 vote236 views1 answer
- 0 vote217 views1 answer
- 23 votes210 views3 answers