/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 vote385 views1 answer
- 0 vote384 views1 answer
- 1 vote378 views1 answer
- 0 vote337 views1 answer
- 0 vote363 views1 answer
- 0 vote378 views1 answer
- 23 votes404 views3 answers
- 1 vote339 views1 answer
- 1 vote391 views1 answer
- 0 vote332 views1 answer