/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 vote205 views1 answer
- 2 votes287 views2 answers
- 7 votes224 views2 answers
- 3 votes234 views1 answer
- 42 votes210 views6 answers
- 8 votes245 views3 answers
- 0 vote212 views1 answer
- 3 votes206 views3 answers
- 22 votes234 views6 answers
- 1 vote221 views1 answer