/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
- 6 votes352 views2 answers
- 5 votes317 views1 answer
- 0 vote278 views1 answer
- 0 vote291 views1 answer
- 0 vote314 views1 answer
- 3 votes260 views2 answers
- 0 vote282 views1 answer
- 1 vote304 views1 answer
- 0 vote279 views1 answer
- 0 vote287 views1 answer