/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 vote382 views1 answer
- 1 vote335 views1 answer
- 44 votes321 views6 answers
- 2 votes319 views2 answers
- 23 votes302 views3 answers
- 2 votes323 views1 answer
- 1 vote324 views1 answer
- 0 vote339 views1 answer
- 86 votes323 views6 answers
- 5 votes328 views4 answers