/Python/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 vote102 views1 answer
- 1 vote95 views1 answer
- 15 votes101 views4 answers
- 0 vote64 views1 answer
- 13 votes99 views5 answers
- 0 vote95 views1 answer
- 2 votes107 views3 answers
- 0 vote105 views1 answer
- 3 votes93 views2 answers
- 0 vote152 views1 answer