/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
- 1 vote335 views1 answer
- 0 vote364 views1 answer
- 1 vote355 views1 answer
- 0 vote407 views1 answer
- 0 vote300 views1 answer
- 23 votes486 views3 answers
- 4 votes334 views2 answers
- 0 vote377 views1 answer
- 2 votes324 views1 answer
- 0 vote359 views1 answer