/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
- 0 vote211 views1 answer
- 0 vote231 views1 answer
- 0 vote222 views1 answer
- 0 vote338 views1 answer
- 2 votes368 views2 answers
- 0 vote214 views1 answer
- 1 vote224 views1 answer
- 4 votes234 views3 answers
- 0 vote167 views1 answer
- 0 vote226 views1 answer