/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 vote285 views1 answer
- 11 votes325 views6 answers
- 4 votes311 views2 answers
- 0 vote261 views1 answer
- 0 vote292 views1 answer
- -4 votes279 views4 answers
- 0 vote255 views1 answer
- 3 votes255 views2 answers
- 0 vote278 views1 answer
- 0 vote328 views1 answer