/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 vote377 views1 answer
- 1 vote380 views1 answer
- 0 vote383 views1 answer
- 0 vote383 views1 answer
- 1 vote339 views1 answer
- 0 vote355 views1 answer
- 0 vote438 views1 answer
- 3 votes349 views4 answers
- 1 vote353 views1 answer
- 0 vote399 views1 answer