/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 vote201 views2 answers
- -2 votes196 views6 answers
- 3 votes204 views1 answer
- 0 vote178 views1 answer
- 0 vote181 views1 answer
- 30 votes293 views6 answers
- 0 vote198 views1 answer
- 0 vote127 views1 answer
- 6 votes206 views1 answer
- 0 vote192 views1 answer