/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 vote305 views1 answer
- 1 vote315 views1 answer
- 0 vote324 views1 answer
- 1 vote314 views1 answer
- 1 vote326 views1 answer
- 8 votes304 views2 answers
- 0 vote273 views1 answer
- 13 votes309 views4 answers
- 1 vote313 views1 answer
- 0 vote317 views3 answers