/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
- 1 vote354 views1 answer
- 0 vote346 views1 answer
- 0 vote331 views2 answers
- 3 votes313 views1 answer
- 1 vote597 views2 answers
- 0 vote325 views2 answers
- 0 vote325 views1 answer
- 2 votes349 views2 answers
- 5 votes307 views5 answers
- 1 vote367 views6 answers